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

15 lines
329 B
ReStructuredText
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.ravel
======================
.. py:function:: mindspore.ops.ravel(x)
返回一个展开的一维Tensor。
参数:
- **x** (Tensor) - 要展开的Tensor。
返回:
一维Tensor含有与输入相同的元素。
异常:
- **TypeError** - 如果 `x` 不是Tensor。