UNPKG

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