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

testcase failing due to commit 7b23a1f5d87064daded4b89487dc968fd933051e #4079

Open
amd-vivekag opened this issue Mar 7, 2025 · 1 comment

Comments

@amd-vivekag
Copy link

The following commit (7b23a1f) has caused the testcase failure:
https://github.com/iree-org/iree-test-suites/tree/main/onnx_ops/onnx/node/generated/test_averagepool_2d_ceil/

This is blocking bump torchmlir in IREE.

Getting error:

EXEC @test_averagepool_2d_ceil
[FAILED] result[0]: element at index 1 (5) does not match the expected (7.5); expected that the view is equal to contents of a view of 1x1x2x2xf32
  expected:
1x1x2x2xf32=[[[6 7.5][12 13.5]]]
  actual:
1x1x2x2xf32=[[[6 5][8 6]]]

After removing this commit, the error is not there.

@ivangarcia44
Copy link
Contributor

@amd-vivekag I can't reproduce this issue. The test passed:

PASSED onnx/node/generated/test_averagepool_2d_ceil/run_module_io_flags.txt::model.mlir::cpu_llvm_sync

I followed the instructions here:
https://github.com/iree-org/iree-test-suites/tree/main/onnx_ops

The printout above came from this command:

pytest -n auto -rA --timeout=30 --durations=20 --config-files=configs/onnx_ops_cpu_llvm_sync.json --report-log=/tmp/onnx_ops_cpu_logs.json

I made sure that the torch-mlir-opt referred to is the one I just sync'ed, built and verified that has my average pooling change.

$ which torch-mlir-opt
/myfolder/torch-mlir/build/bin/torch-mlir-opt

Can you please let me know which steps you used to reproduce this issue?

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

2 participants