Package org.tensorflow.framework
Class TensorDescription.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
- org.tensorflow.framework.TensorDescription.Builder
-
- All Implemented Interfaces:
Cloneable
,org.nd4j.shade.protobuf.Message.Builder
,org.nd4j.shade.protobuf.MessageLite.Builder
,org.nd4j.shade.protobuf.MessageLiteOrBuilder
,org.nd4j.shade.protobuf.MessageOrBuilder
,TensorDescriptionOrBuilder
- Enclosing class:
- TensorDescription
public static final class TensorDescription.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder> implements TensorDescriptionOrBuilder
Protobuf typetensorflow.TensorDescription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TensorDescription.Builder
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
TensorDescription
build()
TensorDescription
buildPartial()
TensorDescription.Builder
clear()
TensorDescription.Builder
clearAllocationDescription()
Information about the size and allocator used for the dataTensorDescription.Builder
clearDtype()
Data type of tensor elementsTensorDescription.Builder
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
TensorDescription.Builder
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
TensorDescription.Builder
clearShape()
Shape of the tensor.TensorDescription.Builder
clone()
AllocationDescription
getAllocationDescription()
Information about the size and allocator used for the dataAllocationDescription.Builder
getAllocationDescriptionBuilder()
Information about the size and allocator used for the dataAllocationDescriptionOrBuilder
getAllocationDescriptionOrBuilder()
Information about the size and allocator used for the dataTensorDescription
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType()
DataType
getDtype()
Data type of tensor elementsint
getDtypeValue()
Data type of tensor elementsTensorShapeProto
getShape()
Shape of the tensor.TensorShapeProto.Builder
getShapeBuilder()
Shape of the tensor.TensorShapeProtoOrBuilder
getShapeOrBuilder()
Shape of the tensor.boolean
hasAllocationDescription()
Information about the size and allocator used for the databoolean
hasShape()
Shape of the tensor.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TensorDescription.Builder
mergeAllocationDescription(AllocationDescription value)
Information about the size and allocator used for the dataTensorDescription.Builder
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
TensorDescription.Builder
mergeFrom(org.nd4j.shade.protobuf.Message other)
TensorDescription.Builder
mergeFrom(TensorDescription other)
TensorDescription.Builder
mergeShape(TensorShapeProto value)
Shape of the tensor.TensorDescription.Builder
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
TensorDescription.Builder
setAllocationDescription(AllocationDescription value)
Information about the size and allocator used for the dataTensorDescription.Builder
setAllocationDescription(AllocationDescription.Builder builderForValue)
Information about the size and allocator used for the dataTensorDescription.Builder
setDtype(DataType value)
Data type of tensor elementsTensorDescription.Builder
setDtypeValue(int value)
Data type of tensor elementsTensorDescription.Builder
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
TensorDescription.Builder
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TensorDescription.Builder
setShape(TensorShapeProto value)
Shape of the tensor.TensorDescription.Builder
setShape(TensorShapeProto.Builder builderForValue)
Shape of the tensor.TensorDescription.Builder
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
clear
public TensorDescription.Builder clear()
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clear
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
getDefaultInstanceForType
public TensorDescription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public TensorDescription build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public TensorDescription buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public TensorDescription.Builder clone()
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clone
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
setField
public TensorDescription.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
clearField
public TensorDescription.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
clearOneof
public TensorDescription.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearOneof
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
setRepeatedField
public TensorDescription.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
addRepeatedField
public TensorDescription.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeFrom
public TensorDescription.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<TensorDescription.Builder>
-
mergeFrom
public TensorDescription.Builder mergeFrom(TensorDescription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeFrom
public TensorDescription.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<TensorDescription.Builder>
- Throws:
IOException
-
getDtypeValue
public int getDtypeValue()
Data type of tensor elements
.tensorflow.DataType dtype = 1;
- Specified by:
getDtypeValue
in interfaceTensorDescriptionOrBuilder
- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
public TensorDescription.Builder setDtypeValue(int value)
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
public DataType getDtype()
Data type of tensor elements
.tensorflow.DataType dtype = 1;
- Specified by:
getDtype
in interfaceTensorDescriptionOrBuilder
- Returns:
- The dtype.
-
setDtype
public TensorDescription.Builder setDtype(DataType value)
Data type of tensor elements
.tensorflow.DataType dtype = 1;
- Parameters:
value
- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
public TensorDescription.Builder 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:
hasShape
in interfaceTensorDescriptionOrBuilder
- Returns:
- Whether the shape field is set.
-
getShape
public TensorShapeProto getShape()
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
- Specified by:
getShape
in interfaceTensorDescriptionOrBuilder
- Returns:
- The shape.
-
setShape
public TensorDescription.Builder setShape(TensorShapeProto value)
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
-
setShape
public TensorDescription.Builder setShape(TensorShapeProto.Builder builderForValue)
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
-
mergeShape
public TensorDescription.Builder mergeShape(TensorShapeProto value)
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
-
clearShape
public TensorDescription.Builder clearShape()
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
-
getShapeBuilder
public TensorShapeProto.Builder getShapeBuilder()
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
-
getShapeOrBuilder
public TensorShapeProtoOrBuilder getShapeOrBuilder()
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
- Specified by:
getShapeOrBuilder
in interfaceTensorDescriptionOrBuilder
-
hasAllocationDescription
public boolean hasAllocationDescription()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
- Specified by:
hasAllocationDescription
in interfaceTensorDescriptionOrBuilder
- Returns:
- Whether the allocationDescription field is set.
-
getAllocationDescription
public AllocationDescription getAllocationDescription()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
- Specified by:
getAllocationDescription
in interfaceTensorDescriptionOrBuilder
- Returns:
- The allocationDescription.
-
setAllocationDescription
public TensorDescription.Builder setAllocationDescription(AllocationDescription value)
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
public TensorDescription.Builder mergeAllocationDescription(AllocationDescription value)
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
-
clearAllocationDescription
public TensorDescription.Builder clearAllocationDescription()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
-
getAllocationDescriptionBuilder
public AllocationDescription.Builder getAllocationDescriptionBuilder()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
-
getAllocationDescriptionOrBuilder
public AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
- Specified by:
getAllocationDescriptionOrBuilder
in interfaceTensorDescriptionOrBuilder
-
setUnknownFields
public final TensorDescription.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeUnknownFields
public final TensorDescription.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
-