Package org.tensorflow.framework
Class TensorInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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,java.lang.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 typetensorflow.TensorInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TensorInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TensorInfobuild()TensorInfobuildPartial()TensorInfo.Builderclear()TensorInfo.BuilderclearCompositeTensor()Generic encoding for CompositeTensors.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(com.google.protobuf.Descriptors.FieldDescriptor field)TensorInfo.BuilderclearName()For dense `Tensor`s, the name of the tensor in the graph.TensorInfo.BuilderclearOneof(com.google.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.CompositeTensorgetCompositeTensor()Generic encoding for CompositeTensors.TensorInfo.CompositeTensor.BuildergetCompositeTensorBuilder()Generic encoding for CompositeTensors.TensorInfo.CompositeTensorOrBuildergetCompositeTensorOrBuilder()Generic encoding for CompositeTensors.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 com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DataTypegetDtype().tensorflow.DataType dtype = 2;intgetDtypeValue().tensorflow.DataType dtype = 2;TensorInfo.EncodingCasegetEncodingCase()java.lang.StringgetName()For dense `Tensor`s, the name of the tensor in the graph.com.google.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.booleanhasCompositeTensor()Generic encoding for CompositeTensors.booleanhasCooSparse()There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).booleanhasTensorShape()The static shape should be recorded here, to the extent that it can be known in advance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TensorInfo.BuildermergeCompositeTensor(TensorInfo.CompositeTensor value)Generic encoding for CompositeTensors.TensorInfo.BuildermergeCooSparse(TensorInfo.CooSparse value)There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix).TensorInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TensorInfo.BuildermergeFrom(com.google.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(com.google.protobuf.UnknownFieldSet unknownFields)TensorInfo.BuildersetCompositeTensor(TensorInfo.CompositeTensor value)Generic encoding for CompositeTensors.TensorInfo.BuildersetCompositeTensor(TensorInfo.CompositeTensor.Builder builderForValue)Generic encoding for CompositeTensors.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(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TensorInfo.BuildersetName(java.lang.String value)For dense `Tensor`s, the name of the tensor in the graph.TensorInfo.BuildersetNameBytes(com.google.protobuf.ByteString value)For dense `Tensor`s, the name of the tensor in the graph.TensorInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.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(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.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 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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
public 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
public TensorInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TensorInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TensorInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TensorInfo.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, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
clearField
public TensorInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
clearOneof
public TensorInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
-
mergeFrom
public TensorInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TensorInfo.Builder>
-
mergeFrom
public TensorInfo.Builder mergeFrom(TensorInfo other)
-
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 java.io.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:
java.io.IOException
-
getEncodingCase
public TensorInfo.EncodingCase getEncodingCase()
- Specified by:
getEncodingCasein interfaceTensorInfoOrBuilder
-
clearEncoding
public TensorInfo.Builder clearEncoding()
-
getName
public java.lang.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 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
public TensorInfo.Builder setName(java.lang.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(com.google.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
-
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
public TensorInfo.CompositeTensor getCompositeTensor()
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;- Specified by:
getCompositeTensorin interfaceTensorInfoOrBuilder- Returns:
- The compositeTensor.
-
setCompositeTensor
public TensorInfo.Builder setCompositeTensor(TensorInfo.CompositeTensor value)
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
-
setCompositeTensor
public TensorInfo.Builder setCompositeTensor(TensorInfo.CompositeTensor.Builder builderForValue)
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
-
mergeCompositeTensor
public TensorInfo.Builder mergeCompositeTensor(TensorInfo.CompositeTensor value)
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
-
clearCompositeTensor
public TensorInfo.Builder clearCompositeTensor()
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
-
getCompositeTensorBuilder
public TensorInfo.CompositeTensor.Builder getCompositeTensorBuilder()
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
-
getCompositeTensorOrBuilder
public TensorInfo.CompositeTensorOrBuilder 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
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(com.google.protobuf.UnknownFieldSet unknownFields)
- 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>
-
-