UNPKG

677 BTypeScriptView Raw
1/// <amd-module name="@tensorflow/tfjs-core/dist/ops/less_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([2, 2, 2]);
10 *
11 * a.lessEqual(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 lessEqual_<T extends Tensor>(a: Tensor | TensorLike, b: Tensor | TensorLike): T;
20export declare const lessEqual: typeof lessEqual_;
21export {};