Skip to content

Commit

Permalink
Update decomp table (pytorch#8210)
Browse files Browse the repository at this point in the history
  • Loading branch information
tugsbayasgalan authored Oct 3, 2024
1 parent c22dfe9 commit a2681e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_xla/stablehlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ def _extract_input_args(exported_model, options):


def _run_decompositions(exported_model):
if hasattr(torch.export, 'core_op_decompositions'):
decomp_table = torch.export.core_op_decompositions()
if hasattr(torch.export, 'default_decompositions'):
decomp_table = torch.export.default_decompositions()
else:
decomp_table = core_aten_decompositions()
decomp_table.update(_extra_decompositions)
Expand Down

0 comments on commit a2681e8

Please sign in to comment.