Skip to content

Commit

Permalink
skip unhashable apis
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Dec 18, 2024
1 parent 3f99ca8 commit d5cc8b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/paddle/jit/sot/utils/paddle_api_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def add_break_graph_apis(apis: list):


def is_directly_run_api(api):
from .utils import hashable

if not hashable(api):
return False
NATIVE_CODE_PURE_FUNCTIONS = {
paddle.base.libpaddle.is_compiled_with_avx,
paddle.base.libpaddle.is_compiled_with_cuda,
Expand Down

0 comments on commit d5cc8b8

Please sign in to comment.