function setDeprecationWarningFn(fn) {
	  deprecationWarningFn = fn;
	}
Sets the deprecation warning function to be used by this file. This way the
Tensor class can be a leaf but still use the environment.