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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ONNX] Unsupported FX nodes: {'call_function': ['aten\ .glu.default']} #126486

Open
titaiwangms opened this issue May 17, 2024 · 1 comment
Open
Assignees
Labels
module: onnx Related to torch.onnx onnx-triaged triaged by ONNX team triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@titaiwangms
Copy link
Collaborator

馃悰 Describe the bug

import torch

model = torch.nn.GLU().eval().cuda()
sample_input = (torch.randn(8, 4).cuda(),)

# This works fine                                                                                                           
torch.onnx.export(model, sample_input, "glu_legacy.onnx")

model = torch.export.export(model, sample_input)
                                                   
# torch.onnx._internal.diagnostics.infra.context.RuntimeErrorWithDiagnostic: Unsupported FX nodes: {'call_function': ['aten\
.glu.default']}.                                                                                                                                                                                             
options = torch.onnx.ExportOptions(dynamic_shapes=True)
out = torch.onnx.dynamo_export(model,
                               *sample_input,
                               export_options=options
                               )

Versions

Main

@titaiwangms titaiwangms added module: onnx Related to torch.onnx onnx-triaged triaged by ONNX team labels May 17, 2024
@mikaylagawarecki mikaylagawarecki added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label May 20, 2024
@titaiwangms
Copy link
Collaborator Author

cc @justinchuby

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: onnx Related to torch.onnx onnx-triaged triaged by ONNX team triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

3 participants