mindspore.ops.truncate_div ========================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/ops/mindspore.ops.func_truncate_div.rst :alt: 查看源文件 .. py:function:: mindspore.ops.truncate_div(x, y) 将 `x` 和 `y` 逐元素相除,结果将向0取整。 .. note:: 支持隐式类型转换,支持广播。 参数: - **x** (Union[Tensor, Number, bool]) - 第一个输入tensor。 - **y** (Union[Tensor, Number, bool]) - 第二个输入tensor。 返回: Tensor