This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into fix-enumerate
- Loading branch information
Showing
15 changed files
with
160 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
from .opcode_translator.breakpoint import BM, add_breakpoint, add_event | ||
from .opcode_translator.skip_files import skip_function | ||
from .translate import symbolic_translate | ||
from .utils import psdb_print | ||
|
||
__all__ = [ | ||
"symbolic_translate", | ||
"add_breakpoint", | ||
"add_event", | ||
"BM", | ||
"skip_function", | ||
"psdb_print", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This file stores the customed function that will be called by the dispatch mechanism. | ||
|
||
from ...utils import BreakGraphError, NotImplementException | ||
|
||
|
||
def raise_break_graph_fn(*args, **kwarg): | ||
raise BreakGraphError("raise by raise_break_graph_fn.") | ||
|
||
|
||
def raise_not_implement_fn(*args, **kwarg): | ||
raise NotImplementException("raise by raise_break_graph_fn.") | ||
|
||
|
||
# just a function for operator.in | ||
def operator_in(left, right): | ||
return left in right | ||
|
||
|
||
def operator_not_in(left, right): | ||
return left not in right | ||
|
||
|
||
def operator_exception_match(left, right): | ||
pass | ||
|
||
|
||
def operator_BAD(left, right): | ||
pass | ||
|
||
|
||
def tensor_numel(x): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.