Browse Source

!453 fix doc/comments issues

Merge pull request !453 from 万万没想到/I1CEDO
tags/v0.2.0-alpha
mindspore-ci-bot Gitee 6 years ago
parent
commit
48f1541fa8
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      mindspore/ops/__init__.py
  2. +1
    -1
      mindspore/ops/operations/array_ops.py

+ 2
- 0
mindspore/ops/__init__.py View File

@@ -26,6 +26,8 @@ Note:
- The Primitive operators in operations need to be used after instantiation.
- The composite operators are pre-defined combination of operator.
- The functional operators are the pre-instantiated Primitive operators, which can be used directly like a function.
- For functional operators usage, please refer to
https://gitee.com/mindspore/mindspore/blob/master/mindspore/ops/functional.py
"""

from .primitive import Primitive, PrimitiveWithInfer, prim_attr_register


+ 1
- 1
mindspore/ops/operations/array_ops.py View File

@@ -795,7 +795,7 @@ class ZerosLike(PrimitiveWithInfer):

Examples:
>>> zeroslike = P.ZerosLike()
>>> x = Tensor(np.array([[0, 1], [2, 1]]).astype(np.int32))
>>> x = Tensor(np.array([[0, 1], [2, 1]]).astype(np.float32))
>>> output = zeroslike(x)
"""



Loading…
Cancel
Save