tf.raw_ops.ImmutableConst

Returns immutable tensor from memory region.

The current implementation memmaps the tensor from a file.

Args
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).
Returns
A Tensor of type dtype.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/raw_ops/ImmutableConst