-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
feat: Add broadcast_tensors method to paddle.tensor.Tensor #26216
Conversation
Hello, @YushaArif99. |
@YushaArif99 |
}, | ||
"paddle", | ||
) | ||
def logical_xor(self, y, out=None, name=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why have you implemented logical_xor
when the PR is about broadcast_tensors
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Tinny-Robot
It seems you've implemented a different function (logical_xor
) and written a test for a different function (broadcast_tensor
). The tests are also failing here with the following error:
E AttributeError: type object 'Tensor' has no attribute 'broadcast_tensors'
PR Description
Changes Made
Added the
broadcast_tensors
function to thepaddle.tensor.tensor.Tensor
class and included the equivalent test case.Details
broadcast_tensors
method to enable broadcasting operations for tensors in thepaddle.tensor.tensor.Tensor
class.This PR enhances the capabilities of the
paddle.tensor.tensor.Tensor
class by introducing thebroadcast_tensors
method and ensures its correctness through testing.Related Issue
Close #25869
Checklist