!37814 add explaination about difference of numpy and ops

Merge pull request !37814 from 杨林枫/code_docs_numpy
This commit is contained in:
i-robot 2022-07-14 07:23:04 +00:00 committed by Gitee
commit 91196795d6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 11 additions and 3 deletions

View File

@ -13,6 +13,10 @@ MindSpore Numpy具有四大功能模块Array生成、Array操作、逻辑运
import mindspore.numpy as np
.. note::
MindSpore numpy通过组装底层算子来提供与numpy一致的编程体验接口方便开发人员使用和代码移植。相比于MindSpore的functional和ops接口与原始numpy的接口格式及行为一致性更好以便于用户理解和使用。注意由于兼容numpy的考虑部分接口的性能可能弱于functional和ops接口。使用者可以按需选择不同类型的接口。
Array生成
----------------

View File

@ -13,6 +13,10 @@ Common imported modules in corresponding API examples are as follows:
import mindspore.numpy as np
.. note::
MindSpore numpy provides a consistent programming experience with native numpy by assembling the low-level operators. Compared with MindSpore's function and ops interfaces, it is easier for user to understand and use. However, please notice that to be more compatible with native numpy, the performance of some MindSpore numpy interfaces may be weaker than the corresponding function/ops interfaces. Users can choose which to use as needed.
Array Generation
----------------

View File

@ -5641,7 +5641,7 @@ def bitwise_and(x1, x2, dtype=None):
Tensor or scalar, this is a scalar if both x1 and x2 are scalars.
Supported Platforms:
``Ascend``
``Ascend`` ``CPU``
Examples:
>>> import mindspore.numpy as np
@ -5673,7 +5673,7 @@ def bitwise_or(x1, x2, dtype=None):
Tensor or scalar, this is a scalar if both x1 and x2 are scalars.
Supported Platforms:
``Ascend``
``Ascend`` ``CPU``
Examples:
>>> import mindspore.numpy as np
@ -5705,7 +5705,7 @@ def bitwise_xor(x1, x2, dtype=None):
Tensor or scalar, this is a scalar if both x1 and x2 are scalars.
Supported Platforms:
``Ascend``
``Ascend`` ``CPU``
Examples:
>>> import mindspore.numpy as np