Returns the truth value of a AND b element-wise. Supports broadcasting.
a AND b
const a = tf.tensor1d([false, false, true, true], 'bool');const b = tf.tensor1d([false, true, false, true], 'bool');a.logicalAnd(b).print(); Copy
const a = tf.tensor1d([false, false, true, true], 'bool');const b = tf.tensor1d([false, true, false, true], 'bool');a.logicalAnd(b).print();
The first input tensor. Must be of dtype bool.
The second input tensor. Must be of dtype bool.
Generated using TypeDoc
Returns the truth value of
a AND b
element-wise. Supports broadcasting.