Package org.tensorflow.framework
Interface TensorDescriptionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TensorDescription,TensorDescription.Builder
public interface TensorDescriptionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
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 com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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;
-