Browse Source

!14111 Fixes numpy.take fail in graph mode

From: @wangrao124
Reviewed-by: @c_34,@liangchenghui
Signed-off-by: @c_34
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
3509ddf617
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