Watch keynotes, product sessions, workshops, and more from Google I/O See playlist


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);;  // OK;  // Compilation failure

Inherited Methods