Package org.tensorflow.framework
Class TensorInfo.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
- org.tensorflow.framework.TensorInfo.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
,TensorInfoOrBuilder
- Enclosing class:
- TensorInfo
public static final class TensorInfo.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder> implements TensorInfoOrBuilder
Information about a Tensor necessary for feeding or retrieval.
Protobuf typetensorflow.TensorInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TensorInfo.Builder
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
TensorInfo
build()
TensorInfo
buildPartial()
TensorInfo.Builder
clear()
TensorInfo.Builder
clearCooSparse()
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.Builder
clearDtype()
.tensorflow.DataType dtype = 2;
TensorInfo.Builder
clearEncoding()
TensorInfo.Builder
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
TensorInfo.Builder
clearName()
For dense `Tensor`s, the name of the tensor in the graph.TensorInfo.Builder
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
TensorInfo.Builder
clearTensorShape()
The static shape should be recorded here, to the extent that it can be known in advance.TensorInfo.Builder
clone()
TensorInfo.CooSparse
getCooSparse()
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.CooSparse.Builder
getCooSparseBuilder()
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.CooSparseOrBuilder
getCooSparseOrBuilder()
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType()
DataType
getDtype()
.tensorflow.DataType dtype = 2;
int
getDtypeValue()
.tensorflow.DataType dtype = 2;
TensorInfo.EncodingCase
getEncodingCase()
String
getName()
For dense `Tensor`s, the name of the tensor in the graph.org.nd4j.shade.protobuf.ByteString
getNameBytes()
For dense `Tensor`s, the name of the tensor in the graph.TensorShapeProto
getTensorShape()
The static shape should be recorded here, to the extent that it can be known in advance.TensorShapeProto.Builder
getTensorShapeBuilder()
The static shape should be recorded here, to the extent that it can be known in advance.TensorShapeProtoOrBuilder
getTensorShapeOrBuilder()
The static shape should be recorded here, to the extent that it can be known in advance.boolean
hasCooSparse()
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).boolean
hasName()
For dense `Tensor`s, the name of the tensor in the graph.boolean
hasTensorShape()
The static shape should be recorded here, to the extent that it can be known in advance.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TensorInfo.Builder
mergeCooSparse(TensorInfo.CooSparse value)
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.Builder
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
TensorInfo.Builder
mergeFrom(org.nd4j.shade.protobuf.Message other)
TensorInfo.Builder
mergeFrom(TensorInfo other)
TensorInfo.Builder
mergeTensorShape(TensorShapeProto value)
The static shape should be recorded here, to the extent that it can be known in advance.TensorInfo.Builder
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
TensorInfo.Builder
setCooSparse(TensorInfo.CooSparse value)
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.Builder
setCooSparse(TensorInfo.CooSparse.Builder builderForValue)
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.Builder
setDtype(DataType value)
.tensorflow.DataType dtype = 2;
TensorInfo.Builder
setDtypeValue(int value)
.tensorflow.DataType dtype = 2;
TensorInfo.Builder
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
TensorInfo.Builder
setName(String value)
For dense `Tensor`s, the name of the tensor in the graph.TensorInfo.Builder
setNameBytes(org.nd4j.shade.protobuf.ByteString value)
For dense `Tensor`s, the name of the tensor in the graph.TensorInfo.Builder
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TensorInfo.Builder
setTensorShape(TensorShapeProto value)
The static shape should be recorded here, to the extent that it can be known in advance.TensorInfo.Builder
setTensorShape(TensorShapeProto.Builder builderForValue)
The static shape should be recorded here, to the extent that it can be known in advance.TensorInfo.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<TensorInfo.Builder>
-
clear
public TensorInfo.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<TensorInfo.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<TensorInfo.Builder>
-
getDefaultInstanceForType
public TensorInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public TensorInfo build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public TensorInfo buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public TensorInfo.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<TensorInfo.Builder>
-
setField
public TensorInfo.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<TensorInfo.Builder>
-
clearField
public TensorInfo.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<TensorInfo.Builder>
-
clearOneof
public TensorInfo.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<TensorInfo.Builder>
-
setRepeatedField
public TensorInfo.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<TensorInfo.Builder>
-
addRepeatedField
public TensorInfo.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<TensorInfo.Builder>
-
mergeFrom
public TensorInfo.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<TensorInfo.Builder>
-
mergeFrom
public TensorInfo.Builder mergeFrom(TensorInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
mergeFrom
public TensorInfo.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<TensorInfo.Builder>
- Throws:
IOException
-
getEncodingCase
public TensorInfo.EncodingCase getEncodingCase()
- Specified by:
getEncodingCase
in interfaceTensorInfoOrBuilder
-
clearEncoding
public TensorInfo.Builder clearEncoding()
-
hasName
public boolean hasName()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
- Specified by:
hasName
in interfaceTensorInfoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
- Specified by:
getName
in interfaceTensorInfoOrBuilder
- Returns:
- The name.
-
getNameBytes
public org.nd4j.shade.protobuf.ByteString getNameBytes()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
- Specified by:
getNameBytes
in interfaceTensorInfoOrBuilder
- Returns:
- The bytes for name.
-
setName
public TensorInfo.Builder setName(String value)
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public TensorInfo.Builder clearName()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public TensorInfo.Builder setNameBytes(org.nd4j.shade.protobuf.ByteString value)
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCooSparse
public boolean hasCooSparse()
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix). Currently, TensorFlow uses only the COO encoding. This is supported and documented in the SparseTensor Python class.
.tensorflow.TensorInfo.CooSparse coo_sparse = 4;
- Specified by:
hasCooSparse
in interfaceTensorInfoOrBuilder
- Returns:
- Whether the cooSparse field is set.
-
getCooSparse
public TensorInfo.CooSparse getCooSparse()
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix). Currently, TensorFlow uses only the COO encoding. This is supported and documented in the SparseTensor Python class.
.tensorflow.TensorInfo.CooSparse coo_sparse = 4;
- Specified by:
getCooSparse
in interfaceTensorInfoOrBuilder
- Returns:
- The cooSparse.
-
setCooSparse
public TensorInfo.Builder setCooSparse(TensorInfo.CooSparse value)
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix). Currently, TensorFlow uses only the COO encoding. This is supported and documented in the SparseTensor Python class.
.tensorflow.TensorInfo.CooSparse coo_sparse = 4;
-
setCooSparse
public TensorInfo.Builder setCooSparse(TensorInfo.CooSparse.Builder builderForValue)
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix). Currently, TensorFlow uses only the COO encoding. This is supported and documented in the SparseTensor Python class.
.tensorflow.TensorInfo.CooSparse coo_sparse = 4;
-
mergeCooSparse
public TensorInfo.Builder mergeCooSparse(TensorInfo.CooSparse value)
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix). Currently, TensorFlow uses only the COO encoding. This is supported and documented in the SparseTensor Python class.
.tensorflow.TensorInfo.CooSparse coo_sparse = 4;
-
clearCooSparse
public TensorInfo.Builder clearCooSparse()
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix). Currently, TensorFlow uses only the COO encoding. This is supported and documented in the SparseTensor Python class.
.tensorflow.TensorInfo.CooSparse coo_sparse = 4;
-
getCooSparseBuilder
public TensorInfo.CooSparse.Builder getCooSparseBuilder()
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix). Currently, TensorFlow uses only the COO encoding. This is supported and documented in the SparseTensor Python class.
.tensorflow.TensorInfo.CooSparse coo_sparse = 4;
-
getCooSparseOrBuilder
public TensorInfo.CooSparseOrBuilder getCooSparseOrBuilder()
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix). Currently, TensorFlow uses only the COO encoding. This is supported and documented in the SparseTensor Python class.
.tensorflow.TensorInfo.CooSparse coo_sparse = 4;
- Specified by:
getCooSparseOrBuilder
in interfaceTensorInfoOrBuilder
-
getDtypeValue
public int getDtypeValue()
.tensorflow.DataType dtype = 2;
- Specified by:
getDtypeValue
in interfaceTensorInfoOrBuilder
- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
public TensorInfo.Builder setDtypeValue(int value)
.tensorflow.DataType dtype = 2;
- Parameters:
value
- The enum numeric value on the wire for dtype to set.- Returns:
- This builder for chaining.
-
getDtype
public DataType getDtype()
.tensorflow.DataType dtype = 2;
- Specified by:
getDtype
in interfaceTensorInfoOrBuilder
- Returns:
- The dtype.
-
setDtype
public TensorInfo.Builder setDtype(DataType value)
.tensorflow.DataType dtype = 2;
- Parameters:
value
- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
public TensorInfo.Builder clearDtype()
.tensorflow.DataType dtype = 2;
- Returns:
- This builder for chaining.
-
hasTensorShape
public boolean hasTensorShape()
The static shape should be recorded here, to the extent that it can be known in advance. In the case of a SparseTensor, this field describes the logical shape of the represented tensor (aka dense_shape).
.tensorflow.TensorShapeProto tensor_shape = 3;
- Specified by:
hasTensorShape
in interfaceTensorInfoOrBuilder
- Returns:
- Whether the tensorShape field is set.
-
getTensorShape
public TensorShapeProto getTensorShape()
The static shape should be recorded here, to the extent that it can be known in advance. In the case of a SparseTensor, this field describes the logical shape of the represented tensor (aka dense_shape).
.tensorflow.TensorShapeProto tensor_shape = 3;
- Specified by:
getTensorShape
in interfaceTensorInfoOrBuilder
- Returns:
- The tensorShape.
-
setTensorShape
public TensorInfo.Builder setTensorShape(TensorShapeProto value)
The static shape should be recorded here, to the extent that it can be known in advance. In the case of a SparseTensor, this field describes the logical shape of the represented tensor (aka dense_shape).
.tensorflow.TensorShapeProto tensor_shape = 3;
-
setTensorShape
public TensorInfo.Builder setTensorShape(TensorShapeProto.Builder builderForValue)
The static shape should be recorded here, to the extent that it can be known in advance. In the case of a SparseTensor, this field describes the logical shape of the represented tensor (aka dense_shape).
.tensorflow.TensorShapeProto tensor_shape = 3;
-
mergeTensorShape
public TensorInfo.Builder mergeTensorShape(TensorShapeProto value)
The static shape should be recorded here, to the extent that it can be known in advance. In the case of a SparseTensor, this field describes the logical shape of the represented tensor (aka dense_shape).
.tensorflow.TensorShapeProto tensor_shape = 3;
-
clearTensorShape
public TensorInfo.Builder clearTensorShape()
The static shape should be recorded here, to the extent that it can be known in advance. In the case of a SparseTensor, this field describes the logical shape of the represented tensor (aka dense_shape).
.tensorflow.TensorShapeProto tensor_shape = 3;
-
getTensorShapeBuilder
public TensorShapeProto.Builder getTensorShapeBuilder()
The static shape should be recorded here, to the extent that it can be known in advance. In the case of a SparseTensor, this field describes the logical shape of the represented tensor (aka dense_shape).
.tensorflow.TensorShapeProto tensor_shape = 3;
-
getTensorShapeOrBuilder
public TensorShapeProtoOrBuilder getTensorShapeOrBuilder()
The static shape should be recorded here, to the extent that it can be known in advance. In the case of a SparseTensor, this field describes the logical shape of the represented tensor (aka dense_shape).
.tensorflow.TensorShapeProto tensor_shape = 3;
- Specified by:
getTensorShapeOrBuilder
in interfaceTensorInfoOrBuilder
-
setUnknownFields
public final TensorInfo.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<TensorInfo.Builder>
-
mergeUnknownFields
public final TensorInfo.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<TensorInfo.Builder>
-
-