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 Type Method Description AllocationDescriptiongetAllocationDescription()Information about the size and allocator used for the dataAllocationDescriptionOrBuildergetAllocationDescriptionOrBuilder()Information about the size and allocator used for the dataDataTypegetDtype()Data type of tensor elementsintgetDtypeValue()Data type of tensor elementsTensorShapeProtogetShape()Shape of the tensor.TensorShapeProtoOrBuildergetShapeOrBuilder()Shape of the tensor.booleanhasAllocationDescription()Information about the size and allocator used for the databooleanhasShape()Shape of the tensor.Methods 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;
-