Class TensorInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TensorInfo.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
org.tensorflow.proto.TensorInfo.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, TensorInfoOrBuilder
- Enclosing class:
TensorInfo
public static final class TensorInfo.Builder
extends GeneratedMessageV3.Builder<TensorInfo.Builder>
implements TensorInfoOrBuilder
Information about a Tensor necessary for feeding or retrieval.Protobuf type
tensorflow.TensorInfo-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Generic encoding for CompositeTensors.There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix)..tensorflow.DataType dtype = 2;For dense `Tensor`s, the name of the tensor in the graph.The static shape should be recorded here, to the extent that it can be known in advance.clone()Generic encoding for CompositeTensors.Generic encoding for CompositeTensors.Generic encoding for CompositeTensors.There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).static final Descriptors.DescriptorgetDtype().tensorflow.DataType dtype = 2;int.tensorflow.DataType dtype = 2;getName()For dense `Tensor`s, the name of the tensor in the graph.For dense `Tensor`s, the name of the tensor in the graph.The static shape should be recorded here, to the extent that it can be known in advance.The static shape should be recorded here, to the extent that it can be known in advance.The static shape should be recorded here, to the extent that it can be known in advance.booleanGeneric encoding for CompositeTensors.booleanThere 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.booleanThe static shape should be recorded here, to the extent that it can be known in advance.protected GeneratedMessageV3.FieldAccessorTablefinal booleanGeneric encoding for CompositeTensors.There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(TensorInfo other) mergeTensorShape(TensorShapeProto value) The static shape should be recorded here, to the extent that it can be known in advance.final TensorInfo.BuildermergeUnknownFields(UnknownFieldSet unknownFields) Generic encoding for CompositeTensors.setCompositeTensor(TensorInfo.CompositeTensor.Builder builderForValue) Generic encoding for CompositeTensors.setCooSparse(TensorInfo.CooSparse value) There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).setCooSparse(TensorInfo.CooSparse.Builder builderForValue) There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix)..tensorflow.DataType dtype = 2;setDtypeValue(int value) .tensorflow.DataType dtype = 2;setField(Descriptors.FieldDescriptor field, Object value) For dense `Tensor`s, the name of the tensor in the graph.setNameBytes(ByteString value) For dense `Tensor`s, the name of the tensor in the graph.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setTensorShape(TensorShapeProto value) The static shape should be recorded here, to the extent that it can be known in advance.setTensorShape(TensorShapeProto.Builder builderForValue) The static shape should be recorded here, to the extent that it can be known in advance.final TensorInfo.BuildersetUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<TensorInfo.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<TensorInfo.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<TensorInfo.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
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<TensorInfo.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<TensorInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<TensorInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<TensorInfo.Builder>
-
setRepeatedField
public TensorInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<TensorInfo.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<TensorInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<TensorInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<TensorInfo.Builder>
-
mergeFrom
public TensorInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<TensorInfo.Builder>- Throws:
IOException
-
getEncodingCase
- Specified by:
getEncodingCasein interfaceTensorInfoOrBuilder
-
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
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;- Specified by:
getNamein interfaceTensorInfoOrBuilder- Returns:
- The name.
-
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
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
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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
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
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
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
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
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
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
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
-
hasCompositeTensor
public boolean hasCompositeTensor()Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;- Specified by:
hasCompositeTensorin interfaceTensorInfoOrBuilder- Returns:
- Whether the compositeTensor field is set.
-
getCompositeTensor
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;- Specified by:
getCompositeTensorin interfaceTensorInfoOrBuilder- Returns:
- The compositeTensor.
-
setCompositeTensor
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; -
setCompositeTensor
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; -
mergeCompositeTensor
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; -
clearCompositeTensor
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; -
getCompositeTensorBuilder
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; -
getCompositeTensorOrBuilder
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;- Specified by:
getCompositeTensorOrBuilderin interfaceTensorInfoOrBuilder
-
getDtypeValue
public int getDtypeValue().tensorflow.DataType dtype = 2;- Specified by:
getDtypeValuein interfaceTensorInfoOrBuilder- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
.tensorflow.DataType dtype = 2;- Parameters:
value- The enum numeric value on the wire for dtype to set.- Returns:
- This builder for chaining.
-
getDtype
.tensorflow.DataType dtype = 2;- Specified by:
getDtypein interfaceTensorInfoOrBuilder- Returns:
- The dtype.
-
setDtype
.tensorflow.DataType dtype = 2;- Parameters:
value- The dtype to set.- Returns:
- This builder for chaining.
-
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
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
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
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
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
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
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
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
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<TensorInfo.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<TensorInfo.Builder>
-