mindspore/docs/api/api_python/mindspore.ops.func_coo_squa...

19 lines
454 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.coo_square
=========================
.. py:function:: mindspore.ops.coo_square(x: COOTensor)
逐元素返回COOTensor的平方。
.. math::
y_i = x_i ^ 2
参数:
- **x** (COOTensor) - 输入COOTensor的维度范围为[0,7],类型为数值类型。
返回:
COOTensor具有与当前COOTensor相同的数据类型和shape。
异常:
- **TypeError** - `x` 不是COOTensor。