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

Support PyTorch v2.2.0 #495

Open
pgleeson opened this issue Feb 1, 2024 · 0 comments
Open

Support PyTorch v2.2.0 #495

pgleeson opened this issue Feb 1, 2024 · 0 comments

Comments

@pgleeson
Copy link
Member

pgleeson commented Feb 1, 2024

Current development is limited to torch<2.2.0. Issue with latest version, e.g.

https://github.com/ModECI/MDF/actions/runs/7738901064/job/21100655263

         # Call out to a part of the ONNX exporter that simiplifies the graph before ONNX export.
        from torch.onnx.utils import _model_to_graph
        from torch.onnx import TrainingMode
>       from torch.onnx.symbolic_helper import _set_opset_version
E       ImportError: cannot import name '_set_opset_version' from 'torch.onnx.symbolic_helper' (/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/torch/onnx/symbolic_helper.py)

/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/modeci_mdf/interfaces/pytorch/importer.py:526: ImportError
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