Skip to content

Commit c9fafe4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a875a30 commit c9fafe4

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

apex/contrib/sparsity/permutation_lib.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,13 +2009,7 @@ def trace_and_print_raw_fx_graph(cls, model, print_tabular=False, generate_pytho
20092009
if not torch.distributed.is_initialized() or torch.distributed.get_rank() == 0:
20102010
if cls.__verbosity > 0:
20112011
print(ex)
2012-
print(
2013-
"".join(
2014-
traceback.format_exception(
2015-
value=ex, tb=ex.__traceback__
2016-
)
2017-
)
2018-
)
2012+
print("".join(traceback.format_exception(value=ex, tb=ex.__traceback__)))
20192013
print(
20202014
"\n[print_raw_fx_graph] Meet the fatal fault when trying to symbolic trace the model with Torch.FX"
20212015
)

0 commit comments

Comments
 (0)