Browse Source

!14141 numpy-native fix docstrings for select

From: @jachua
Reviewed-by: @guoqi1024,@zhunaipan
Signed-off-by: @zhunaipan
pull/14141/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
d9d3aaed19
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      mindspore/numpy/array_ops.py

+ 1
- 2
mindspore/numpy/array_ops.py View File

@@ -2064,8 +2064,7 @@ def select(condlist, choicelist, default=0):
ValueError: if ``len(condlist) != len(choicelist)``. ValueError: if ``len(condlist) != len(choicelist)``.


Examples: Examples:
>>> condlist = [[True, True, True, False, False],
[False, False, True, False, True]]
>>> condlist = [[True, True, True, False, False], [False, False, True, False, True]]
>>> choicelist = [[0, 1, 2, 3, 4], [0, 1, 4, 9, 16]] >>> choicelist = [[0, 1, 2, 3, 4], [0, 1, 4, 9, 16]]
>>> output = np.select(condlist, choicelist) >>> output = np.select(condlist, choicelist)
>>> print(output) >>> print(output)


Loading…
Cancel
Save