Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[export] Conditionally load decomp table #8209

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Conversation

lsy323
Copy link
Collaborator

@lsy323 lsy323 commented Oct 3, 2024

Fix failed stablehlo test for upstream PR pytorch/pytorch#136884

@lsy323 lsy323 requested review from qihqi and JackCaoG October 3, 2024 03:35
@lsy323 lsy323 added the stablehlo StableHLO related work label Oct 3, 2024
@lsy323 lsy323 self-assigned this Oct 3, 2024
@lsy323 lsy323 merged commit c22dfe9 into master Oct 3, 2024
23 checks passed
@lsy323 lsy323 deleted the lsiyuan/fix-decomp branch October 3, 2024 05:26
@@ -320,7 +320,10 @@ def _extract_input_args(exported_model, options):


def _run_decompositions(exported_model):
decomp_table = core_aten_decompositions()
if hasattr(torch.export, 'core_op_decompositions'):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change it to default_decompositions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stablehlo StableHLO related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants