UNPKG

600 BTypeScriptView Raw
1import { Tensor } from '../tensor';
2import { TensorLike } from '../types';
3/**
4 * Returns the truth value of (a > b) element-wise. Supports broadcasting.
5 *
6 * ```js
7 * const a = tf.tensor1d([1, 2, 3]);
8 * const b = tf.tensor1d([2, 2, 2]);
9 *
10 * a.greater(b).print();
11 * ```
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 greater_<T extends Tensor>(a: Tensor | TensorLike, b: Tensor | TensorLike): T;
19export declare const greater: typeof greater_;
20export {};