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

Fixes avg pool 3d #171

Merged
merged 3 commits into from
Jun 10, 2024
Merged

Fixes avg pool 3d #171

merged 3 commits into from
Jun 10, 2024

Conversation

@josel-amd josel-amd requested a review from mgehre-amd June 7, 2024 10:38
@josel-amd josel-amd changed the title FXML-4700 Fixes avg pool 3d Fixes avg pool 3d Jun 7, 2024
@josel-amd
Copy link
Collaborator Author

josel-amd commented Jun 7, 2024

Sad, the new test is failing. I guess I missed something :(
Edit: It is on StableHLO which I didn't port

zjgarvey and others added 3 commits June 10, 2024 10:44
The previous conversions for AtenAdaptiveAvgPool1dOp and
AtenAdaptiveMaxPool2dOp are refactored into a general templated
conversion that works for all of the AtenAdaptive...PoolNdOp's.

New support is added for the following ops:

1. AtenAdaptiveMaxPool1d
2. AtenAdaptiveMaxPool3d
3. AtenAdaptiveAvgPool3d

Support is also provided for passing inputs without batch dimensions.
For example, applying adaptive_avg_pool2d to an input tensor of rank 3.

After [pytorch #118162](pytorch/pytorch#118162)
gets down to torch-mlir, I'll add a test for AdaptiveMaxPool1d with
return_indices (which will pass with that upstream fix).

---------

Co-authored-by: James Newling <[email protected]>
This commit also fixes the average pool op' test failing for
OnnxToLinalg lowering.

Signed-Off By: Vivek Khandelwal <[email protected]>
Support for the operator in HLO has been implemented in

llvm#3259

but that change is not in this fork yet.
@josel-amd josel-amd force-pushed the jose.fix_avg_pool_3d branch from 09da441 to 862fcca Compare June 10, 2024 09:45
@josel-amd josel-amd merged commit 0f85717 into feature/backport_ea1_ops Jun 10, 2024
2 checks passed
@josel-amd josel-amd deleted the jose.fix_avg_pool_3d branch June 10, 2024 11:17
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.

4 participants