!305 fix doc/comments issues

Merge pull request !305 from 万万没想到/fix-format-in-examples
pull/305/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 8d297b6e0f

@ -39,7 +39,7 @@ class Assign(PrimitiveWithInfer):
>>> self.y = mindspore.Parameter(Tensor([1.0], mindspore.float32), name="y")
>>>
>>> def construct(self, x):
>>> Assign()(self.y, x)
>>> P.Assign()(self.y, x)
>>> return x
>>> x = Tensor([2.0], mindspore.float32)
>>> net = Net()

Loading…
Cancel
Save