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

Trouble Exporting to Torchscript #1051

Open
will-rice opened this issue May 23, 2024 · 0 comments
Open

Trouble Exporting to Torchscript #1051

will-rice opened this issue May 23, 2024 · 0 comments

Comments

@will-rice
Copy link

I'm having trouble exporting ScatteringTorch1D to torchscript. The module traces fine, but then errors on saving the traced module.

The specific error is this:

RuntimeError:
Could not export Python function call 'ModulusStable'. Remove calls to Python functions before export. Did you forget to add @script or @script_method annotation? If this is a nn.ModuleList, add it to constants:

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

No branches or pull requests

1 participant