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

Regenerate ONNX tests using newer torch-mlir. #84

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

ScottTodd
Copy link
Member

Generated with

(Would be nice to put that version information in the repo / test case files somewhere...)

Unfortunately, none of the newly importable tests compile:

  • Before: 238 passed, 809 xfailed
  • After: 238 passed, 995 xfailed

Copy link
Member Author

@ScottTodd ScottTodd Mar 1, 2024

Choose a reason for hiding this comment

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

Note that we're down to 48 import failures now, compared to just 2 upstream in torch-mlir. The difference there comes from iree_tests/onnx/import_tests.py not handling all input and output protobufs from the ONNX test suite (e.g. sequence types, optional types). To support those (if we care), we'd need to write the conversion code from ONNX protos to .npy or .bin files. ONNX has helper functions here: https://github.com/onnx/onnx/blob/b48d763a2d22574540f51b6bc5ce1a537fb65024/onnx/backend/test/runner/__init__.py#L510-L523 but I wasn't quite sure how to get those saved to .npy files.

@ScottTodd
Copy link
Member Author

Ping? Want to review? (I can also just merge myself with no review :P)

@kumardeepakamd
Copy link
Contributor

kumardeepakamd commented Mar 4, 2024 via email

Copy link
Contributor

@kumardeepakamd kumardeepakamd left a comment

Choose a reason for hiding this comment

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

Scanned the files changed. Looks good.

@kumardeepakamd kumardeepakamd merged commit 1aacf68 into nod-ai:main Mar 4, 2024
1 check passed
@ScottTodd ScottTodd deleted the onnx-import-more branch March 5, 2024 17:16
renxida pushed a commit that referenced this pull request Jul 18, 2024
* Regenerate onnx tests using latest torch-mlir.

* Update XFAIL lists in CPU and GPU Vulkan configs.

* Rename config_cpu to config_cpu_llvm_sync matching IREE.
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.

2 participants