mindspore.ops.Trunc =================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/ops/mindspore.ops.Trunc.rst :alt: 查看源文件 .. py:class:: mindspore.ops.Trunc 返回一个新的张量,该张量具有输入元素的截断整数值。 更多参考详见 :func:`mindspore.ops.trunc`。 输入: - **input_x** (Tensor) - 任意维度的Tensor。 输出: Tensor,shape和数据类型与 `input_x` 相同。