Package org.tensorflow.framework
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.framework.TensorInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,TensorInfoOrBuilder
- Enclosing class:
TensorInfo
public static final class TensorInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
implements TensorInfoOrBuilder
Information about a Tensor necessary for feeding or retrieval.Protobuf type
tensorflow.TensorInfo-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.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;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) For dense `Tensor`s, the name of the tensor in the graph.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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 com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDtype().tensorflow.DataType dtype = 2;int.tensorflow.DataType dtype = 2;getName()For dense `Tensor`s, the name of the tensor in the graph.com.google.protobuf.ByteStringFor 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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanGeneric encoding for CompositeTensors.There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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(com.google.protobuf.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;For dense `Tensor`s, the name of the tensor in the graph.setNameBytes(com.google.protobuf.ByteString value) For dense `Tensor`s, the name of the tensor in the graph.setRepeatedField(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
setField
public TensorInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
setRepeatedField
public TensorInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
addRepeatedField
public TensorInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TensorInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
mergeFrom
public TensorInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.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
public com.google.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
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 interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
mergeUnknownFields
public final TensorInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-