Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
feifei-111 committed Sep 28, 2023
1 parent 5fc1ee6 commit f8383c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sot/opcode_translator/skip_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _module_dir(m: types.ModuleType):

customed_skip_code = set()

no_skip_code = {paddle.nn.Sequential.forward.__code__}
no_skip_code = {paddle.nn.Sequential.forward.__code__, paddle.nn.Layer.__call__}


def need_skip_path(filepath: str) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion sot/opcode_translator/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def eval_frame_callback(frame, **kwargs) -> CustomCode:
return CustomCode(None, True)

if need_skip(frame):
return CustomCode(None, False)
return CustomCode(None, True)

log(
2,
Expand Down

0 comments on commit f8383c0

Please sign in to comment.