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

16 lines
391 B
ReStructuredText
Executable File
Raw Permalink 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)
返回一个新的Tensor该Tensor具有输入元素的截断整数值。
参数:
- **input** (Tensor) - 任意维度的Tensor。
返回:
Tensorshape和数据类型与 `input` 相同。
异常:
- **TypeError** - `input` 不是Tensor。