!453 fix doc/comments issues

Merge pull request !453 from 万万没想到/I1CEDO
pull/453/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 48f1541fa8

@ -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

@ -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