TensorInfo

public final class TensorInfo

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

Nested Classes

class TensorInfo.Builder
 Information about a Tensor necessary for feeding or retrieval. 
class TensorInfo.CompositeTensor
 Generic encoding for composite tensors. 
interface TensorInfo.CompositeTensorOrBuilder  
class TensorInfo.CooSparse
 For sparse tensors, The COO encoding stores a triple of values, indices,
 and shape. 
interface TensorInfo.CooSparseOrBuilder  
enum TensorInfo.EncodingCase  

Constants

int COMPOSITE_TENSOR_FIELD_NUMBER
int COO_SPARSE_FIELD_NUMBER
int DTYPE_FIELD_NUMBER
int NAME_FIELD_NUMBER
int TENSOR_SHAPE_FIELD_NUMBER

Public Methods

boolean
equals(Object obj)
TensorInfo.CompositeTensor
getCompositeTensor()
 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.CooSparseOrBuilder
getCooSparseOrBuilder()
 There are many possible encodings of sparse matrices
 (https://en.wikipedia.org/wiki/Sparse_matrix).
static TensorInfo
TensorInfo
final static 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.
int
TensorShapeProto
getTensorShape()
 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.
final com.google.protobuf.UnknownFieldSet
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.
int
final boolean
static TensorInfo.Builder
newBuilder(TensorInfo prototype)
static TensorInfo.Builder
TensorInfo.Builder
static TensorInfo
parseDelimitedFrom(InputStream input)
static TensorInfo
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TensorInfo
parseFrom(ByteBuffer data)
static TensorInfo
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TensorInfo
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TensorInfo
parseFrom(com.google.protobuf.CodedInputStream input)
static TensorInfo
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TensorInfo
parseFrom(com.google.protobuf.ByteString data)
static TensorInfo
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TensorInfo
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
parser()
TensorInfo.Builder
void
writeTo(com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int COMPOSITE_TENSOR_FIELD_NUMBER

Constant Value: 5

public static final int COO_SPARSE_FIELD_NUMBER

Constant Value: 4

public static final int DTYPE_FIELD_NUMBER

Constant Value: 2

public static final int NAME_FIELD_NUMBER

Constant Value: 1

public static final int TENSOR_SHAPE_FIELD_NUMBER

Constant Value: 3

Public Methods

public boolean equals (Object obj)

public TensorInfo.CompositeTensor getCompositeTensor ()

 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.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 TensorInfo getDefaultInstance ()

public TensorInfo getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public DataType getDtype ()

.tensorflow.DataType dtype = 2;

public int getDtypeValue ()

.tensorflow.DataType dtype = 2;

public TensorInfo.EncodingCase getEncodingCase ()

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

public int getSerializedSize ()

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 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 final com.google.protobuf.UnknownFieldSet getUnknownFields ()

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 int hashCode ()

public final boolean isInitialized ()

public static TensorInfo.Builder newBuilder (TensorInfo prototype)

public static TensorInfo.Builder newBuilder ()

public TensorInfo.Builder newBuilderForType ()

public static TensorInfo parseDelimitedFrom (InputStream input)

Throws
IOException

public static TensorInfo parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static TensorInfo parseFrom (ByteBuffer data)

Throws
InvalidProtocolBufferException

public static TensorInfo parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static TensorInfo parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static TensorInfo parseFrom (com.google.protobuf.CodedInputStream input)

Throws
IOException

public static TensorInfo parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static TensorInfo parseFrom (com.google.protobuf.ByteString data)

Throws
InvalidProtocolBufferException

public static TensorInfo parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static TensorInfo parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static parser ()

public TensorInfo.Builder toBuilder ()

public void writeTo (com.google.protobuf.CodedOutputStream output)

Throws
IOException