Skip to main content

//clika-runtime/io.clika.runtime/Ops/eq

eq

[common]
fun eq(input: Tensor, other: Tensor): Tensor

eq(input: Tensor, other: Tensor): the eq operator. 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.

[common]
fun eq(input: Tensor, other: Double): Tensor

eq(input: Tensor, other: Double): the number form of eq, other as a scalar.