forked from mindspore-Ecosystem/mindspore
modify the example of Parameter comment
This commit is contained in:
parent
b60930452b
commit
dd5e302854
|
@ -72,7 +72,7 @@ class Parameter(MetaTensor):
|
|||
>>>
|
||||
>>> def construct(self, x):
|
||||
>>> out = self.matmul(self.weight, x)
|
||||
>>> return out
|
||||
>>> return out
|
||||
>>> context.set_context(mode=context.GRAPH_MODE, device_target="CPU")
|
||||
>>> net = Net()
|
||||
>>> x = Tensor(np.ones((2,1)))
|
||||
|
|
Loading…
Reference in New Issue