fix a minor doc error of uniform op

pull/7944/head
peixu_ren 4 years ago
parent 25c388e01e
commit 1370939e9a

@ -131,7 +131,7 @@ def uniform(shape, minval, maxval, seed=None, dtype=mstype.float32):
>>> shape = (4, 2)
>>> minval = Tensor(1, mstype.int32)
>>> maxval = Tensor(2, mstype.int32)
>>> output = C.uniform(shape, minval, maxval, seed=5)
>>> output = C.uniform(shape, minval, maxval, seed=5, dtype=mstype.int32)
>>>
>>> For continuous uniform distribution, minval and maxval can be multi-dimentional:
>>> shape = (4, 2)

Loading…
Cancel
Save