ClikaRT::ops::eq
function
eq()
Tensor eq(Tensor a, ScalarOrTensor other)
Elementwise equality a == other, the output contract the whole comparison family shares: the result is a Bool tensor at the broadcast shape (operands promote to their dominant dtype before the compare). A scalar other compares against every element. The other comparisons state "output as `eq`" instead of restating this.
Returns: the broadcast-shaped Bool mask.
Throws
-
ClikaRT::Error: (INVALID_ARGUMENT) when the operand shapes are not broadcast-compatible.auto hits = ClikaRT::ops::eq(ids, pad_id); // Bool mask
Declared in ClikaRT/compute/ops.h, line 1656