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| Modifier and Type | Method and Description |
|---|---|
TensorInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.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(com.google.protobuf.Descriptors.FieldDescriptor field) |
TensorInfo.Builder |
clearName()
For dense `Tensor`s, the name of the tensor in the graph.
|
TensorInfo.Builder |
clearOneof(com.google.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
DataType |
getDtype()
.tensorflow.DataType dtype = 2; |
int |
getDtypeValue()
.tensorflow.DataType dtype = 2; |
TensorInfo.EncodingCase |
getEncodingCase() |
java.lang.String |
getName()
For dense `Tensor`s, the name of the tensor in the graph.
|
com.google.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 |
hasTensorShape()
The static shape should be recorded here, to the extent that it can
be known in advance.
|
protected com.google.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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TensorInfo.Builder |
mergeFrom(com.google.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(com.google.protobuf.UnknownFieldSet unknownFields) |
TensorInfo.Builder |
setCooSparse(TensorInfo.CooSparse.Builder builderForValue)
There are many possible encodings of sparse matrices
(https://en.wikipedia.org/wiki/Sparse_matrix).
|
TensorInfo.Builder |
setCooSparse(TensorInfo.CooSparse value)
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(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TensorInfo.Builder |
setName(java.lang.String value)
For dense `Tensor`s, the name of the tensor in the graph.
|
TensorInfo.Builder |
setNameBytes(com.google.protobuf.ByteString value)
For dense `Tensor`s, the name of the tensor in the graph.
|
TensorInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
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 |
setTensorShape(TensorShapeProto value)
The static shape should be recorded here, to the extent that it can
be known in advance.
|
TensorInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public TensorInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public TensorInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TensorInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TensorInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TensorInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public TensorInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public TensorInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public TensorInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public TensorInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public TensorInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public TensorInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TensorInfo.Builder>public TensorInfo.Builder mergeFrom(TensorInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public TensorInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TensorInfo.Builder>java.io.IOExceptionpublic TensorInfo.EncodingCase getEncodingCase()
getEncodingCase in interface TensorInfoOrBuilderpublic TensorInfo.Builder clearEncoding()
public java.lang.String getName()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;getName in interface TensorInfoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;getNameBytes in interface TensorInfoOrBuilderpublic TensorInfo.Builder setName(java.lang.String value)
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;value - The name to set.public TensorInfo.Builder clearName()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;public TensorInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;value - The bytes for name to set.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;hasCooSparse in interface TensorInfoOrBuilderpublic 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;getCooSparse in interface TensorInfoOrBuilderpublic 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;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;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;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;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;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;getCooSparseOrBuilder in interface TensorInfoOrBuilderpublic int getDtypeValue()
.tensorflow.DataType dtype = 2;getDtypeValue in interface TensorInfoOrBuilderpublic TensorInfo.Builder setDtypeValue(int value)
.tensorflow.DataType dtype = 2;value - The enum numeric value on the wire for dtype to set.public DataType getDtype()
.tensorflow.DataType dtype = 2;getDtype in interface TensorInfoOrBuilderpublic TensorInfo.Builder setDtype(DataType value)
.tensorflow.DataType dtype = 2;value - The dtype to set.public TensorInfo.Builder clearDtype()
.tensorflow.DataType dtype = 2;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;hasTensorShape in interface TensorInfoOrBuilderpublic 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;getTensorShape in interface TensorInfoOrBuilderpublic 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;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;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;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;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;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;getTensorShapeOrBuilder in interface TensorInfoOrBuilderpublic final TensorInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>public final TensorInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>