UNPKG

665 BTypeScriptView Raw
1/// <amd-module name="@tensorflow/tfjs-core/dist/ops/greater" />
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([2, 2, 2]);
10 *
11 * a.greater(b).print();
12 * ```
13 *
14 * @param a The first input tensor.
15 * @param b The second input tensor. Must have the same dtype as `a`.
16 *
17 * @doc {heading: 'Operations', subheading: 'Logical'}
18 */
19declare function greater_<T extends Tensor>(a: Tensor | TensorLike, b: Tensor | TensorLike): T;
20export declare const greater: typeof greater_;
21export {};