Interface TensorDescriptionOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
TensorDescription, TensorDescription.Builder
-
Method Summary
Modifier and TypeMethodDescriptionInformation about the size and allocator used for the dataInformation about the size and allocator used for the datagetDtype()Data type of tensor elementsintData type of tensor elementsgetShape()Shape of the tensor.Shape of the tensor.booleanInformation about the size and allocator used for the databooleanhasShape()Shape of the tensor.Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
getDtypeValue
int getDtypeValue()Data type of tensor elements
.tensorflow.DataType dtype = 1;- Returns:
- The enum numeric value on the wire for dtype.
-
getDtype
DataType getDtype()Data type of tensor elements
.tensorflow.DataType dtype = 1;- Returns:
- The dtype.
-
hasShape
boolean hasShape()Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;- Returns:
- Whether the shape field is set.
-
getShape
TensorShapeProto getShape()Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;- Returns:
- The shape.
-
getShapeOrBuilder
TensorShapeProtoOrBuilder getShapeOrBuilder()Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
hasAllocationDescription
boolean hasAllocationDescription()Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;- Returns:
- Whether the allocationDescription field is set.
-
getAllocationDescription
AllocationDescription getAllocationDescription()Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;- Returns:
- The allocationDescription.
-
getAllocationDescriptionOrBuilder
AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder()Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
-