Package org.platanios.tensorflow.proto
Interface TensorInfoOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TensorInfo
,TensorInfo.Builder
public interface TensorInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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).DataType
getDtype()
.org.platanios.tensorflow.proto.DataType dtype = 2;
int
getDtypeValue()
.org.platanios.tensorflow.proto.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.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
For dense `Tensor`s, the name of the tensor in the graph.
string name = 1;
- Returns:
- The bytes for name.
-
hasCooSparse
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.
.org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
- Returns:
- Whether the cooSparse field is set.
-
getCooSparse
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.
.org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
- Returns:
- The cooSparse.
-
getCooSparseOrBuilder
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.
.org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
-
hasCompositeTensor
boolean hasCompositeTensor()
Generic encoding for CompositeTensors.
.org.platanios.tensorflow.proto.TensorInfo.CompositeTensor composite_tensor = 5;
- Returns:
- Whether the compositeTensor field is set.
-
getCompositeTensor
TensorInfo.CompositeTensor getCompositeTensor()
Generic encoding for CompositeTensors.
.org.platanios.tensorflow.proto.TensorInfo.CompositeTensor composite_tensor = 5;
- Returns:
- The compositeTensor.
-
getCompositeTensorOrBuilder
TensorInfo.CompositeTensorOrBuilder getCompositeTensorOrBuilder()
Generic encoding for CompositeTensors.
.org.platanios.tensorflow.proto.TensorInfo.CompositeTensor composite_tensor = 5;
-
getDtypeValue
int getDtypeValue()
.org.platanios.tensorflow.proto.DataType dtype = 2;
- Returns:
- The enum numeric value on the wire for dtype.
-
getDtype
DataType getDtype()
.org.platanios.tensorflow.proto.DataType dtype = 2;
- Returns:
- The dtype.
-
hasTensorShape
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).
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
- Returns:
- Whether the tensorShape field is set.
-
getTensorShape
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).
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
- Returns:
- The tensorShape.
-
getTensorShapeOrBuilder
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).
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
-
getEncodingCase
TensorInfo.EncodingCase getEncodingCase()
-
-