ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


Returns immutable tensor from memory region.

The current implementation memmaps the tensor from a file.

dtype A tf.DType. Type of the returned tensor.
shape A tf.TensorShape or list of ints. Shape of the returned tensor.
memory_region_name A string. Name of readonly memory region used by the tensor, see NewReadOnlyMemoryRegionFromFile in tensorflow::Env.
name A name for the operation (optional).

A Tensor of type dtype.