Browse Source

!14109 Fixes numpy.take fail in graph mode

From: @wangrao124
Reviewed-by: @c_34,@liangchenghui
Signed-off-by: @c_34
pull/14109/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
f1071fc9ff
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mindspore/numpy/utils_const.py

+ 1
- 0
mindspore/numpy/utils_const.py View File

@@ -220,6 +220,7 @@ def _raise_runtime_error(info, param=None):
raise RuntimeError(info + f"{param}")


@constexpr
def _raise_unimplemented_error(info, param=None):
"""
Raise NotImplementedError in both graph/pynative mode


Loading…
Cancel
Save