[Core Aten Op] bring aten_replication_pad3d test back#6537
Conversation
wonjoo-wj
left a comment
There was a problem hiding this comment.
Thanks! LGTM pending CI.
|
@ManfeiBai, looking back at this I actually didn't see a lowering for |
thanks for confirming, @wonjoolee95, let me confirm it locally too |
|
What you can do is just have a simple python to run that op in torch_xla. And you can print the metric check to see if the aten:: or xla:: version got called. Let me know if you need more help. |
one simple test locally: it looks like the second generated result is a tensor on XLA device too, does that means the op not fell back to CPU? |
|
You can import |
thanks, pasted the output in https://gist.github.com/ManfeiBai/36799aa983d518a2233337dc701d294b |
|
thanks, dumped the similar example code of 2d and HLO of 2d has dumped logic, this 3d example need to have same logic of op lowering like 2d too |
|
Yep, so it needs an actual lowering. We already lower the reflection pad 2d op so I think the logic may be somewhat similar. Let me know if you have any questions. Meanwhile, I'll revert this PR. |
This reverts commit b7c760d.
Fixes #5892
Testing
two tests pass directly: