Stay organized with collections Save and categorize content based on your preferences.
public interface TNumber
Known Indirect Subclasses

Common interface for all numeric tensors.

Operations that only accepts numeric 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<TFloat32> c2 = tf.array(true, false, true);

 tf.nn.softmax(c1);  // OK
 tf.nn.softmax(c2);  // Compilation failure

Inherited Methods