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

feat: Add broadcast_tensors method to paddle.tensor.Tensor #26216

Closed
wants to merge 6 commits into from

Conversation

Tinny-Robot
Copy link

PR Description

Changes Made

Added the broadcast_tensors function to the paddle.tensor.tensor.Tensor class and included the equivalent test case.

Details

  • Implemented the broadcast_tensors method to enable broadcasting operations for tensors in the paddle.tensor.tensor.Tensor class.
  • Added a corresponding test case to ensure the functionality of the newly added method.

This PR enhances the capabilities of the paddle.tensor.tensor.Tensor class by introducing the broadcast_tensors method and ensures its correctness through testing.

Related Issue

Close #25869

Checklist

  • Did you add a function?
  • Did you add the tests?
  • Did you run your tests and are your tests passing?
  • Did pre-commit not fail on any check?
  • Did you follow the steps we provided?

@ivy-leaves ivy-leaves added the Paddle Frontend Developing the Paddle Frontend, checklist triggered by commenting add_frontend_checklist label Sep 27, 2023
@Tinny-Robot
Copy link
Author

Hello, @YushaArif99.
please i'm awaiting review

@Tinny-Robot
Copy link
Author

@YushaArif99
Hello, please i'm waiting for your review

},
"paddle",
)
def logical_xor(self, y, out=None, name=None):
Copy link
Contributor

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 ?

Copy link
Contributor

@YushaArif99 YushaArif99 left a 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'

@Tinny-Robot Tinny-Robot closed this Oct 8, 2023
@Tinny-Robot Tinny-Robot deleted the broadcast_tensor branch October 8, 2023 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Paddle Frontend Developing the Paddle Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

broadcast_tensors
4 participants