mx.symbol.fix

Description

Returns element-wise rounded value to the nearest integer towards zero of the input.

Example:

 fix([-2.1, -1.9, 1.9, 2.1]) = [-2., -1.,  1., 2.]

 The storage type of ``fix`` output depends upon the input storage type:

- fix(default) = default
- fix(row_sparse) = row_sparse
- fix(csr) = csr

Usage

mx.symbol.fix(...)

Arguments

Argument

Description

data

NDArray-or-Symbol.

The input array.

name

string, optional.

Name of the resulting symbol.