Returns immutable tensor from memory region.
tf.raw_ops.ImmutableConst(
dtype, shape, memory_region_name, name=None
)
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 .
|