Skip to content

Conversation

@vivekkhandelwal1
Copy link
Collaborator

This commit also fixes the average pool op' test failing for OnnxToLinalg lowering.

Signed-Off By: Vivek Khandelwal vivekkhandelwal1424@gmail.com

@vivekkhandelwal1 vivekkhandelwal1 force-pushed the fix-avgpool branch 3 times, most recently from 45fa4c0 to f569d31 Compare March 18, 2024 16:28
@AmosLewis
Copy link
Collaborator

You will need this commit to
[ONNX] Fix padding attributes for onnx.AveragePool eb3b62f

@AmosLewis
Copy link
Collaborator

Could you also test with model nod-ai/AMD-SHARK-TestSuite#185 in shark-testsuites with --torchtolinag flag before iree bump:
python ./run.py --torchmlirbuild ../../torch-mlir/build --tolerance 0.001 0.001 --cachedir ./huggingface_cache --ireebuild ../../iree-build -f onnx -g models --mode onnx --report --tests onnx/models/VideoResNet_vaiq_int8 --torchtolinalg

@vivekkhandelwal1
Copy link
Collaborator Author

Could you also test with model nod-ai/SHARK-TestSuite#185 in shark-testsuites with --torchtolinag flag before iree bump: python ./run.py --torchmlirbuild ../../torch-mlir/build --tolerance 0.001 0.001 --cachedir ./huggingface_cache --ireebuild ../../iree-build -f onnx -g models --mode onnx --report --tests onnx/models/VideoResNet_vaiq_int8 --torchtolinalg

It fails during iree-compile with failure for 3d conv but passed for torch-mlir.

@vivekkhandelwal1
Copy link
Collaborator Author

You will need this commit to [ONNX] Fix padding attributes for onnx.AveragePool eb3b62f

We can do this in a seperate PR, since the current PR doesn't make any change in the Onnx implementation. Or, you can create a PR with your commit for the same.

@vivekkhandelwal1
Copy link
Collaborator Author

vivekkhandelwal1 commented May 16, 2024

Could you also test with model nod-ai/SHARK-TestSuite#185 in shark-testsuites with --torchtolinag flag before iree bump: python ./run.py --torchmlirbuild ../../torch-mlir/build --tolerance 0.001 0.001 --cachedir ./huggingface_cache --ireebuild ../../iree-build -f onnx -g models --mode onnx --report --tests onnx/models/VideoResNet_vaiq_int8 --torchtolinalg

I'm getting this:

Status report for run: test-onnx using mode:onnx todtype:default backend:llvm-cpu

| tests                             | model-run   | onnx-import   | torch-mlir   | iree-compile   | inference   |
|:----------------------------------|:------------|:--------------|:-------------|:---------------|:------------|
| onnx/models/VideoResNet_vaiq_int8 | passed      | passed        | passed       | passed         | mismatch    |

@vivekkhandelwal1
Copy link
Collaborator Author

Hi @rsuderman, can you please re-review this PR?

@vivekkhandelwal1
Copy link
Collaborator Author

Hi @rsuderman, can you please re-review this?

@vivekkhandelwal1 vivekkhandelwal1 force-pushed the fix-avgpool branch 2 times, most recently from b685a32 to c1121a7 Compare May 31, 2024 16:14
This commit also fixes the average pool op' test failing for
OnnxToLinalg lowering.

Signed-Off By: Vivek Khandelwal <vivekkhandelwal1424@gmail.com>
@vivekkhandelwal1
Copy link
Collaborator Author

Hi @rsuderman, can you please re-review this?

Hi @rsuderman, just a gentle reminder to review this PR.

@vivekkhandelwal1 vivekkhandelwal1 merged commit 661be2d into llvm:main Jun 4, 2024
sjarus pushed a commit to sjarus/torch-mlir that referenced this pull request Jun 6, 2024
This commit also fixes the average pool op' test failing for
OnnxToLinalg lowering.

Signed-Off By: Vivek Khandelwal <vivekkhandelwal1424@gmail.com>
josel-amd pushed a commit to Xilinx/torch-mlir that referenced this pull request Jun 7, 2024
This commit also fixes the average pool op' test failing for
OnnxToLinalg lowering.

Signed-Off By: Vivek Khandelwal <vivekkhandelwal1424@gmail.com>
josel-amd pushed a commit to Xilinx/torch-mlir that referenced this pull request Jun 10, 2024
This commit also fixes the average pool op' test failing for
OnnxToLinalg lowering.

Signed-Off By: Vivek Khandelwal <vivekkhandelwal1424@gmail.com>
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