ImmutableConst
tensorflow C++ API
tensorflow::ops::ImmutableConst
Returns immutable tensor from memory region.
Summary
The current implementation memmaps the tensor from a file.
Arguments:
- scope: A Scope object
- dtype: Type of the returned tensor.
- shape: Shape of the returned tensor.
- memory_region_name: Name of readonly memory region used by the tensor, see NewReadOnlyMemoryRegionFromFile in tensorflow::Env.
Returns:
Output
: The tensor tensor.
ImmutableConst block
Source link :https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_array_ops.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
- DataType dtype: Type of the returned tensor.
- PartialTensorShape shape: Shape of the returned tensor.
- StringPiece memory_region_name: Name of readonly memory region used by the tensor, see NewReadOnlyMemoryRegionFromFile in tensorflow::Env.
Output:
- output : Output object of ImmutableConst class object.
Result:
- std::vector(Tensor)
result_output
: ATensor
.