mindspore/docs/api/api_python/numpy/mindspore.numpy.broadcast_a...

18 lines
499 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.numpy.broadcast_arrays
=================================
.. py:function:: mindspore.numpy.broadcast_arrays(*args)
将任意数量的数组广播到共同的shape。
.. note::
不支持Numpy的 ``subok`` 参数。在图模式下返回的不是Tensor列表而是Tensor的tuple。
参数:
- **\*args** (Tensor) - 要进行广播的数组。
返回:
Tensor列表。
异常:
- **ValueError** - 如果数组不能被广播。