From b31c5fab61d2728a98764613945786efbfae8ea2 Mon Sep 17 00:00:00 2001 From: wangrao Date: Thu, 25 Mar 2021 19:46:47 +0800 Subject: [PATCH] add constexpr for unimplemented error --- mindspore/numpy/utils_const.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mindspore/numpy/utils_const.py b/mindspore/numpy/utils_const.py index 647908a901..c23d04b3c5 100644 --- a/mindspore/numpy/utils_const.py +++ b/mindspore/numpy/utils_const.py @@ -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