UNPKG

669 BTypeScriptView Raw
1/// <amd-module name="@tensorflow/tfjs-core/dist/ops/not_equal" />
2import { Tensor } from '../tensor';
3import { TensorLike } from '../types';
4/**
5 * Returns the truth value of (a != b) element-wise. Supports broadcasting.
6 *
7 * ```js
8 * const a = tf.tensor1d([1, 2, 3]);
9 * const b = tf.tensor1d([0, 2, 3]);
10 *
11 * a.notEqual(b).print();
12 * ```
13 * @param a The first input tensor.
14 * @param b The second input tensor. Must have the same dtype as `a`.
15 *
16 * @doc {heading: 'Operations', subheading: 'Logical'}
17 */
18declare function notEqual_<T extends Tensor>(a: Tensor | TensorLike, b: Tensor | TensorLike): T;
19export declare const notEqual: typeof notEqual_;
20export {};