UNPKG

464 BTypeScriptView Raw
1import { Tensor } from '../tensor';
2import { TensorLike } from '../types';
3/**
4 * Computes floor of input `tf.Tensor` element-wise: `floor(x)`.
5 *
6 * ```js
7 * const x = tf.tensor1d([.6, 1.1, -3.3]);
8 *
9 * x.floor().print(); // or tf.floor(x)
10 * ```
11 * @param x The input tensor.
12 *
13 * @doc {heading: 'Operations', subheading: 'Basic math'}
14 */
15declare function floor_<T extends Tensor>(x: T | TensorLike): T;
16export declare const floor: typeof floor_;
17export {};