Skip to content
Open
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
8 changes: 1 addition & 7 deletions apex/contrib/sparsity/permutation_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2009,13 +2009,7 @@ def trace_and_print_raw_fx_graph(cls, model, print_tabular=False, generate_pytho
if not torch.distributed.is_initialized() or torch.distributed.get_rank() == 0:
if cls.__verbosity > 0:
print(ex)
print(
"".join(
traceback.format_exception(
etype=type(ex), value=ex, tb=ex.__traceback__
)
)
)
print("".join(traceback.format_exception(value=ex, tb=ex.__traceback__)))
print(
Comment on lines 2011 to 2013
Copy link
Copy Markdown
Author

@yujincheng08 yujincheng08 Mar 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, this may cause inconsistency. And since python 3.6 etype has no effect.

"\n[print_raw_fx_graph] Meet the fatal fault when trying to symbolic trace the model with Torch.FX"
)
Expand Down
Loading