Class TensorDescription.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TensorDescription.Builder>
com.google.protobuf.GeneratedMessage.Builder<TensorDescription.Builder>
org.tensorflow.proto.TensorDescription.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, TensorDescriptionOrBuilder
- Enclosing class:
TensorDescription
public static final class TensorDescription.Builder
extends GeneratedMessage.Builder<TensorDescription.Builder>
implements TensorDescriptionOrBuilder
Protobuf type
tensorflow.TensorDescription-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Information about the size and allocator used for the dataData type of tensor elementsShape of the tensor.Information about the size and allocator used for the dataInformation about the size and allocator used for the dataInformation about the size and allocator used for the datastatic final Descriptors.DescriptorgetDtype()Data type of tensor elementsintData type of tensor elementsgetShape()Shape of the tensor.Shape of the tensor.Shape of the tensor.booleanInformation about the size and allocator used for the databooleanhasShape()Shape of the tensor.protected GeneratedMessage.FieldAccessorTablefinal booleanInformation about the size and allocator used for the datamergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(TensorDescription other) mergeShape(TensorShapeProto value) Shape of the tensor.Information about the size and allocator used for the datasetAllocationDescription(AllocationDescription.Builder builderForValue) Information about the size and allocator used for the dataData type of tensor elementssetDtypeValue(int value) Data type of tensor elementssetShape(TensorShapeProto value) Shape of the tensor.setShape(TensorShapeProto.Builder builderForValue) Shape of the tensor.Methods inherited from class GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage.Builder<TensorDescription.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<TensorDescription.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<TensorDescription.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<TensorDescription.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<TensorDescription.Builder>
-
mergeFrom
public TensorDescription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<TensorDescription.Builder>- Throws:
IOException
-
getDtypeValue
public int getDtypeValue()Data type of tensor elements
.tensorflow.DataType dtype = 1;- Specified by:
getDtypeValuein interfaceTensorDescriptionOrBuilder- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
Data type of tensor elements
.tensorflow.DataType dtype = 1;- Parameters:
value- The enum numeric value on the wire for dtype to set.- Returns:
- This builder for chaining.
-
getDtype
Data type of tensor elements
.tensorflow.DataType dtype = 1;- Specified by:
getDtypein interfaceTensorDescriptionOrBuilder- Returns:
- The dtype.
-
setDtype
Data type of tensor elements
.tensorflow.DataType dtype = 1;- Parameters:
value- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
Data type of tensor elements
.tensorflow.DataType dtype = 1;- Returns:
- This builder for chaining.
-
hasShape
public boolean hasShape()Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;- Specified by:
hasShapein interfaceTensorDescriptionOrBuilder- Returns:
- Whether the shape field is set.
-
getShape
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapein interfaceTensorDescriptionOrBuilder- Returns:
- The shape.
-
setShape
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
setShape
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
mergeShape
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
clearShape
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
getShapeBuilder
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
getShapeOrBuilder
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapeOrBuilderin interfaceTensorDescriptionOrBuilder
-
hasAllocationDescription
public boolean hasAllocationDescription()Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;- Specified by:
hasAllocationDescriptionin interfaceTensorDescriptionOrBuilder- Returns:
- Whether the allocationDescription field is set.
-
getAllocationDescription
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;- Specified by:
getAllocationDescriptionin interfaceTensorDescriptionOrBuilder- Returns:
- The allocationDescription.
-
setAllocationDescription
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4; -
setAllocationDescription
public TensorDescription.Builder setAllocationDescription(AllocationDescription.Builder builderForValue) Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4; -
mergeAllocationDescription
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4; -
clearAllocationDescription
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4; -
getAllocationDescriptionBuilder
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4; -
getAllocationDescriptionOrBuilder
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;- Specified by:
getAllocationDescriptionOrBuilderin interfaceTensorDescriptionOrBuilder
-