feat: add pytorch frontend index_reduce#23016
Conversation
|
Thanks for contributing to Ivy! 😊👏 |
|
@D0m-inic I found New Failures Introduced do not belong to this PR, should we fix them in this PR? New Failures Introduced: ivy_tests/test_ivy/test_frontends/test_torch/test_indexing_slicing_joining_mutating_ops.py::test_torch_index_copy,torch
ivy_tests/test_ivy/test_frontends/test_torch/test_indexing_slicing_joining_mutating_ops.py::test_torch_index_copy,paddle
ivy_tests/test_ivy/test_frontends/test_torch/test_indexing_slicing_joining_mutating_ops.py::test_torch_masked_select,numpy
ivy_tests/test_ivy/test_frontends/test_torch/test_tensor.py::test_torch_tensor_var,numpy
ivy_tests/test_ivy/test_frontends/test_torch/test_tensor.py::test_torch_tensor_index_select,jax
ivy_tests/test_ivy/test_frontends/test_torch/test_indexing_slicing_joining_mutating_ops.py::test_torch_argwhere,tensorflow
ivy_tests/test_ivy/test_frontends/test_torch/test_indexing_slicing_joining_mutating_ops.py::test_torch_index_add,torch
ivy_tests/test_ivy/test_frontends/test_torch/test_indexing_slicing_joining_mutating_ops.py::test_torch_index_add,paddle
ivy_tests/test_ivy/test_frontends/test_torch/test_indexing_slicing_joining_mutating_ops.py::test_torch_index_select,jax
ivy_tests/test_ivy/test_frontends/test_torch/test_tensor.py::test_torch_tensor_view,tensorflow |
|
Hi, I see you've changed some other parts of the code not including your test and implementation that are most likely introducing these new failures, could you revert these? |
|
@D0m-inic I have checked these errors. One came from my miss typing (numberic instead of numeric). After test again, the New Failures Introduced reduce to: But I think the others not belong to my code. Such as:
This error likely belong to the backend. I have check in the Pytorch documents https://pytorch.org/docs/stable/tensors.html#id5. Torch currently do not support uint16, uint32, uint64, bfloat32, bfloat64 and paddle currently not support bfloat16 Does Ivy add new support dtypes that Pytorch do not support? If yes maybe we need to check the helper.get_dtypes method to produce correct dtype. |
|
Hi @tsdocode, thank you for your contribution, I'll be taking over for reviewing. I see that most introduced failures come from the same |
|
@nassimberrada, thanks for your feedback. I did reverted the _arrays_dim_idx_n_dtypes and create an extend one. |
|
Hey, thanks for making those changes. Just a question, is your branch up-to-date with |
|
Of course code is up-to-date with main. I think there is some problem with intelligent-test-pr job of Ivy repo. Other PR is also failed by this error. |
|
Yes I've been waiting for them to come back to me on this issue, but thanks for flagging it on your side as well. Let's wait for a fix then we can get your PR merged if everything's clear. |
|
@nassimberrada the test error in auto test is fixed, I also re-run the test and there no new failures introduce. |
|
Looks good to me, great work! Merging, thank your for your patience and for your contribution! |
Co-authored by: nassimberrada
Co-authored by: nassimberrada



PR Description
Related Issue
Close #22971
Checklist
Socials: