Have a question? Connect with the community at the TensorFlow Forum Visit Forum

TensorInfo.Builder

public static final class TensorInfo.Builder

 Information about a Tensor necessary for feeding or retrieval.
 
Protobuf type tensorflow.TensorInfo

Public Methods

TensorInfo.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TensorInfo
TensorInfo
TensorInfo.Builder
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
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
mergeCompositeTensor ( TensorInfo.CompositeTensor value)
 Generic encoding for CompositeTensors.
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
setCompositeTensor ( TensorInfo.CompositeTensor value)
 Generic encoding for CompositeTensors.
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
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, 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 build ()

public TensorInfo buildPartial ()

public TensorInfo.Builder clear ()

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 clearDtype ()

.tensorflow.DataType dtype = 2;

public TensorInfo.Builder clearEncoding ()

public TensorInfo.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public TensorInfo.Builder clearName