Skip to content

Commit d5cc8b8

Browse files
committed
skip unhashable apis
1 parent 3f99ca8 commit d5cc8b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/paddle/jit/sot/utils/paddle_api_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ def add_break_graph_apis(apis: list):
132132

133133

134134
def is_directly_run_api(api):
135+
from .utils import hashable
136+
137+
if not hashable(api):
138+
return False
135139
NATIVE_CODE_PURE_FUNCTIONS = {
136140
paddle.base.libpaddle.is_compiled_with_avx,
137141
paddle.base.libpaddle.is_compiled_with_cuda,

0 commit comments

Comments
 (0)