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.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)TensorInfobuild()TensorInfobuildPartial()TensorInfo.Builderclear()TensorInfo.BuilderclearCooSparse()There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.BuilderclearDtype().tensorflow.DataType dtype = 2;TensorInfo.BuilderclearEncoding()TensorInfo.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)TensorInfo.BuilderclearName()For dense `Tensor`s, the name of the tensor in the graph.TensorInfo.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)TensorInfo.BuilderclearTensorShape()The static shape should be recorded here, to the extent that it can be known in advance.TensorInfo.Builderclone()TensorInfo.CooSparsegetCooSparse()There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.CooSparse.BuildergetCooSparseBuilder()There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.CooSparseOrBuildergetCooSparseOrBuilder()There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfogetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()DataTypegetDtype().tensorflow.DataType dtype = 2;intgetDtypeValue().tensorflow.DataType dtype = 2;TensorInfo.EncodingCasegetEncodingCase()StringgetName()For dense `Tensor`s, the name of the tensor in the graph.org.nd4j.shade.protobuf.ByteStringgetNameBytes()For dense `Tensor`s, the name of the tensor in the graph.TensorShapeProtogetTensorShape()The static shape should be recorded here, to the extent that it can be known in advance.TensorShapeProto.BuildergetTensorShapeBuilder()The static shape should be recorded here, to the extent that it can be known in advance.TensorShapeProtoOrBuildergetTensorShapeOrBuilder()The static shape should be recorded here, to the extent that it can be known in advance.booleanhasCooSparse()There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).booleanhasName()For dense `Tensor`s, the name of the tensor in the graph.booleanhasTensorShape()The static shape should be recorded here, to the extent that it can be known in advance.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TensorInfo.BuildermergeCooSparse(TensorInfo.CooSparse value)There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)TensorInfo.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)TensorInfo.BuildermergeFrom(TensorInfo other)TensorInfo.BuildermergeTensorShape(TensorShapeProto value)The static shape should be recorded here, to the extent that it can be known in advance.TensorInfo.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)TensorInfo.BuildersetCooSparse(TensorInfo.CooSparse value)There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.BuildersetCooSparse(TensorInfo.CooSparse.Builder builderForValue)There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.BuildersetDtype(DataType value).tensorflow.DataType dtype = 2;TensorInfo.BuildersetDtypeValue(int value).tensorflow.DataType dtype = 2;TensorInfo.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)TensorInfo.BuildersetName(String value)For dense `Tensor`s, the name of the tensor in the graph.TensorInfo.BuildersetNameBytes(org.nd4j.shade.protobuf.ByteString value)For dense `Tensor`s, the name of the tensor in the graph.TensorInfo.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TensorInfo.BuildersetTensorShape(TensorShapeProto value)The static shape should be recorded here, to the extent that it can be known in advance.TensorInfo.BuildersetTensorShape(TensorShapeProto.Builder builderForValue)The static shape should be recorded here, to the extent that it can be known in advance.TensorInfo.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
clear
public TensorInfo.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
getDefaultInstanceForType
public TensorInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public TensorInfo build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public TensorInfo buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public TensorInfo.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
setField
public TensorInfo.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
clearField
public TensorInfo.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
clearOneof
public TensorInfo.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
addRepeatedField
public TensorInfo.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
mergeFrom
public TensorInfo.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<TensorInfo.Builder>
-
mergeFrom
public TensorInfo.Builder mergeFrom(TensorInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<TensorInfo.Builder>- Throws:
IOException
-
getEncodingCase
public TensorInfo.EncodingCase getEncodingCase()
- Specified by:
getEncodingCasein 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:
hasNamein 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:
getNamein 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:
getNameBytesin 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:
hasCooSparsein 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:
getCooSparsein 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:
getCooSparseOrBuilderin interfaceTensorInfoOrBuilder
-
getDtypeValue
public int getDtypeValue()
.tensorflow.DataType dtype = 2;- Specified by:
getDtypeValuein 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:
getDtypein 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:
hasTensorShapein 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:
getTensorShapein 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:
getTensorShapeOrBuilderin interfaceTensorInfoOrBuilder
-
setUnknownFields
public final TensorInfo.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
mergeUnknownFields
public final TensorInfo.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
-