!37814 add explaination about difference of numpy and ops
Merge pull request !37814 from 杨林枫/code_docs_numpy
This commit is contained in:
commit
91196795d6
|
@ -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生成
|
||||
----------------
|
||||
|
||||
|
|
|
@ -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
|
||||
----------------
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue