mlx.core.trunc

目录

mlx.core.trunc#

trunc(a: array, /, *, stream: StreamOrDevice = None) → array#

Element-wise truncation towards zero.

参数:

a (array) -- Input array.

返回:

The truncated array.

返回类型:

array