function dispose(container) {
	  var tensors = getTensorsInContainer(container);
	  tensors.forEach(function (tensor) {
	    return tensor.dispose();
	  });
	}
Disposes any `tf.Tensor`s found within the provided object.

@param container an object that may be a `tf.Tensor` or may directly
    contain `tf.Tensor`s, such as a `Tensor[]` or `{key: Tensor, ...}`. If
    the object is not a `tf.Tensor` or does not contain `Tensors`, nothing
    happens. In general it is safe to pass any object here, except that
    `Promise`s are not supported.

@doc {heading: 'Performance', subheading: 'Memory'}