mindspore/docs/api/api_python/ops/mindspore.ops.func_trunc.rst

16 lines
399 B
ReStructuredText
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.trunc
===================
.. py:function:: mindspore.ops.trunc(input_x)
返回一个新的张量,该张量具有输入元素的截断整数值。
参数:
- **input_x** (Tensor) - 任意维度的Tensor。
返回:
Tensorshape和数据类型与 `input_x` 相同。
异常:
- **TypeError** - `input_x` 不是Tensor。