Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions python/paddle/jit/sot/utils/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class DataDependencyControlFlowBreak(DataDependencyBreak):

def __init__(self, reason_str=None, file_path="", line_number=-1):
if reason_str is None:

reason_str = "OpcodeInlineExecutor want break graph when simulate control flow."

super().__init__(
Expand Down Expand Up @@ -193,7 +192,7 @@ def __init__(self, msg, disable_eval_frame=False):
# raise in inline function call strategy.
class BreakGraphError(SotErrorBase):
def __init__(self, reason: BreakGraphReasonBase | str = None):
super().__init__()
super().__init__(str(reason))

if isinstance(reason, str):
# if reason is a string, then create a UnspecifiedBreakReason object
Expand Down
Loading