public interface
TFloating
Known Indirect Subclasses |
Common interface for all floating point tensors.
Operations that only accepts floating point values as some of their operands enforce that the tensor types for these operands to be bound to this interface. For example:
Ops tf = Ops.create();
Constant<TFloat32> c1 = tf.array(1.0f, 2.0f, 3.0f);
Constant<TBool> c2 = tf.array(true, false, true);
Exponential<TFloat32> exp = new Exponential<>(tf);
exp.call(c1); // OK
exp.call(c2); // Compilation failure
Inherited Methods
From interface
org.tensorflow.types.family.TType
From interface
org.tensorflow.Tensor
abstract RawTensor |
asRawTensor()
Returns a raw (untyped) representation of this tensor
|
abstract void |
close()
Release resources associated with the Tensor.
|
abstract DataType | |
abstract long |
numBytes()
Returns the size, in bytes, of the tensor data.
|
abstract static <T extends TType> T | |
abstract static <T extends TType> T | |
abstract static <T extends TType> T | |
abstract static <T extends TType> T | |
abstract static <T extends TType> T |
of(Class<T> type, Shape shape, ByteDataBuffer rawData)
Creates a Tensor of any type from the raw data provided by the given buffer.
|
abstract Shape |
shape()
Returns the shape of the tensor.
|
From interface
org.tensorflow.ndarray.Shaped
From interface
java.lang.AutoCloseable
abstract void |
close()
|