Browse Source

add constexpr for unimplemented error

pull/14109/head
wangrao 5 years ago
parent
commit
b31c5fab61
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