mindspore/docs/api/api_python/mint/mindspore.mint.func_clone.rst

19 lines
459 B
ReStructuredText
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.mint.clone
====================
.. py:function:: mindspore.mint.clone(input)
返回一个输入Tensor的副本。
.. note::
该函数是可微分的,梯度将直接从该函数的计算结果流向 `input`
参数:
- **input** (Tensor) - 输入Tensor。
返回:
Tensor其数据、shape和数据类型与输入 `input` 相同。
异常:
- **TypeError** - `input` 不是Tensor。