UNPKG

@tensorflow/tfjs-core

Version:

Hardware-accelerated JavaScript library for machine intelligence

22 lines (21 loc) 656 B
/// <amd-module name="@tensorflow/tfjs-core/dist/ops/equal" /> import { Tensor } from '../tensor'; import { TensorLike } from '../types'; /** * Returns the truth value of (a == b) element-wise. Supports broadcasting. * * ```js * const a = tf.tensor1d([1, 2, 3]); * const b = tf.tensor1d([2, 2, 2]); * * a.equal(b).print(); * ``` * * @param a The first input tensor. * @param b The second input tensor. Must have the same dtype as `a`. * * @doc {heading: 'Operations', subheading: 'Logical'} */ declare function equal_<T extends Tensor>(a: Tensor | TensorLike, b: Tensor | TensorLike): T; export declare const equal: typeof equal_; export {};