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

Add support for torch>=2, torchvision>=0.15.2, onnx>=1.14 #483

Merged
merged 25 commits into from
Sep 18, 2023

Conversation

davidt0x
Copy link
Contributor

@davidt0x davidt0x commented Aug 31, 2023

Miscellaneous changes to support latest versions of torch, torchvsion, and ONNX. This adds tests for more torchvision models. I also paired down the torchvision tests to speed things up. There are a couple marked as xfail that I still need to work on.

@pgleeson, I cleaned up some stuff in the CI as well.

  • Re-enable python 3.10 testing on full package
  • Re-enable windows testing on full package
  • Install graphviz with a setup-graphviz action, this works on all platforms it seems.
  • Consolidate windows and linux\mac testing, these got separated at one point, not sure how.

Monsurat-Onabajo and others added 24 commits January 13, 2023 10:34
Looks like torch script compile was generating an
OnnxPad operation with None passed to constant_value
argument. This was causing a crash in the execution
engine. This was uncovered after fixing a bug of
handling prim::Constant Op correctly.
Little hack to pin ONNX ir_version to 8 if onnxruntime version
is less than 1.15. This should get fixed soon with update of
onnx package. See microsoft/onnxruntime#15874
Seems like ONNX has switched to using / characters in
node names. This was causing issues with expression parsing
because output port ids are used in expressions.
Keras model serialized in examples/TensorFlow/Keras/kr_N_model.h5 is failing to load on new TF version. Getting:

TypeError: weight_decay is not a valid argument, kwargs should be empty  for `optimizer_experimental.Optimizer`.
Keras model serialized in examples/TensorFlow/Keras/kr_N_model.h5 is failing to load. Getting:

TypeError: weight_decay is not a valid argument, kwargs should be empty  for `optimizer_experimental.Optimizer`.

Can't reproduce locally, trying this suggested fix:

https://stackoverflow.com/questions/74667876/typeerror-weight-decay-is-not-a-valid-argument-kwargs-should-be-empty-for-opt
Re-enable full testing of package on 3.10
Looks like scikit-learn wheels aren't available for 3.11.
Getting compilation errors.
@davidt0x davidt0x requested a review from pgleeson August 31, 2023 17:44
@pgleeson
Copy link
Member

pgleeson commented Sep 1, 2023

Thanks @davidt0x, will try it out.

@davidt0x
Copy link
Contributor Author

davidt0x commented Sep 6, 2023

Hey @pgleeson, which version of onnx were you seeing failures? I tried 1.12 (current is 1.14) and it is passing.

@pgleeson
Copy link
Member

pgleeson commented Sep 7, 2023

@davidt0x I think the issue was pytorch 1.11 with the later versions of the onnx libs was causing the "old" form of the node ids to be generated, see this commit: 7222224

@pgleeson pgleeson merged commit ce187cb into development Sep 18, 2023
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

Successfully merging this pull request may close these issues.

3 participants