public static final class
TensorInfo.Builder
Information about a Tensor necessary for feeding or retrieval.
tensorflow.TensorInfo
Public Methods
TensorInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
TensorInfo |
build()
|
TensorInfo | |
TensorInfo.Builder |
clear()
|
TensorInfo.Builder |
clearCompositeTensor()
Generic encoding for CompositeTensors. |
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 | |
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.CompositeTensor |
getCompositeTensor()
Generic encoding for CompositeTensors. |
TensorInfo.CompositeTensor.Builder |
getCompositeTensorBuilder()
Generic encoding for CompositeTensors. |
TensorInfo.CompositeTensorOrBuilder |
getCompositeTensorOrBuilder()
Generic encoding for CompositeTensors. |
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 | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
DataType |
getDtype()
.tensorflow.DataType dtype = 2;
|
int |
getDtypeValue()
.tensorflow.DataType dtype = 2;
|
TensorInfo.EncodingCase | |
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 |
hasCompositeTensor()
Generic encoding for CompositeTensors. |
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. |
final boolean | |
TensorInfo.Builder | |
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.Message other)
|
TensorInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
TensorInfo.Builder |
mergeTensorShape(TensorShapeProto value)
The static shape should be recorded here, to the extent that it can be known in advance. |
final TensorInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
TensorInfo.Builder | |
TensorInfo.Builder |
setCompositeTensor(TensorInfo.CompositeTensor.Builder builderForValue)
Generic encoding for CompositeTensors. |
TensorInfo.Builder |
setCooSparse(TensorInfo.CooSparse value)
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix). |
TensorInfo.Builder |
setCooSparse(TensorInfo.CooSparse.Builder builderForValue)
There are many possible encodings of sparse matrices (https://en.wikipedia.org/wiki/Sparse_matrix). |
TensorInfo.Builder | |
TensorInfo.Builder |
setDtypeValue(int value)
.tensorflow.DataType dtype = 2;
|
TensorInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
TensorInfo.Builder |
setName(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, Object value)
|
TensorInfo.Builder |
setTensorShape(TensorShapeProto value)
The static shape should be recorded here, to the extent that it can be known in advance. |
TensorInfo.Builder |
setTensorShape(TensorShapeProto.Builder builderForValue)
The static shape should be recorded here, to the extent that it can be known in advance. |
final TensorInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public TensorInfo.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public TensorInfo.Builder clearCompositeTensor ()
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
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.Builder clearName ()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
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 TensorInfo.CompositeTensor getCompositeTensor ()
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
public TensorInfo.CompositeTensor.Builder getCompositeTensorBuilder ()
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
public TensorInfo.CompositeTensorOrBuilder getCompositeTensorOrBuilder ()
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
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;
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;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public int getDtypeValue ()
.tensorflow.DataType dtype = 2;
public String getName ()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
public com.google.protobuf.ByteString getNameBytes ()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
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;
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;
public boolean hasCompositeTensor ()
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
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;
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;
public final boolean isInitialized ()
public TensorInfo.Builder mergeCompositeTensor (TensorInfo.CompositeTensor value)
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
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 mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
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 final TensorInfo.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public TensorInfo.Builder setCompositeTensor (TensorInfo.CompositeTensor value)
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
public TensorInfo.Builder setCompositeTensor (TensorInfo.CompositeTensor.Builder builderForValue)
Generic encoding for CompositeTensors.
.tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
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;
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 setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public TensorInfo.Builder setName (String value)
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;
public TensorInfo.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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;
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;