Browse Source

!7944 Fix a minor error in doc of uniform op

Merge pull request !7944 from peixu_ren/custom_pp_ops
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
852bf44078
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ops/composite/random_ops.py

+ 1
- 1
mindspore/ops/composite/random_ops.py View File

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