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

Added Cumprod to raw_ops #4945

Merged
merged 7 commits into from
Oct 7, 2022
Merged

Added Cumprod to raw_ops #4945

merged 7 commits into from
Oct 7, 2022

Conversation

KareemMAX
Copy link
Contributor

@KareemMAX KareemMAX commented Sep 27, 2022

Close #4944

@ivy-leaves ivy-leaves added the TensorFlow Frontend Developing the TensorFlow Frontend, checklist triggered by commenting add_frontend_checklist label Sep 27, 2022
@KareemMAX KareemMAX marked this pull request as ready for review September 27, 2022 02:49
@KareemMAX
Copy link
Contributor Author

@KareemMAX
Copy link
Contributor Author

Can you please review my PR when you have a chance? @abdrahmandiab

@KareemMAX
Copy link
Contributor Author

@abdrahmandiab I noticed you made some changes, can help me understand it? And I was wondering how the review is going?

@abdrahmandiab
Copy link
Contributor

@abdrahmandiab I noticed you made some changes, can help me understand it? And I was wondering how the review is going?

Hi @KareemMAX , I believe I made 2 changes
first, to the tests, I removed the tolerance values rtol & atol since they are limiting failure detections and are unnecessary as tests pass without them. I also removed the with_out argument generation since for a Tensorflow backend, it is always set as False.

and second, I added aliases for cumprod and cumsum in tensorflow/math.py. This is to match the Aliases used by Tensorflow since it has a tf.math.cumprod and a tf.raw_ops.Cumprod, and same goes for cumsum (which is not really related to your PR 😅 )

I will be adding some review comments soon to address a few tiny things that have to be updated so stay tuned for that!

Copy link
Contributor

@abdrahmandiab abdrahmandiab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @KareemMAX , great work so far! We are very close to merging this PR. 🚀

Just a few changes outlined in this review that hopefully should not take too much of your time!

It would also be nice if you handle the merge conflicts currently present with the branch, and let me know if you need any help with that!

Thanks! 😇

@KareemMAX
Copy link
Contributor Author

Hey @abdrahmandiab, thank you so much for the insights.
I have addressed your comment, while doing so I have found some bugs in cumprod backend which I fixed and tests now pass. Awaiting for your review.

Thanks a lot! ❤

@abdrahmandiab
Copy link
Contributor

Hi @KareemMAX,
Could you give me an example that was failing due to the bug you fixed? :)

Otherwise, everything looks great!
Thanks so much for your work, will be merging soon! 🚀

@KareemMAX
Copy link
Contributor Author

KareemMAX commented Oct 7, 2022

Hey @abdrahmandiab,
When exclusive=True tests fail, this was due to backends multiplying tensors with zeros_like(x), I changed them to ones_like(x) while keeping tensorflow backend as is. You can also refer to tensorflow api reference to recheck my changes.

Thanks ❤

@abdrahmandiab abdrahmandiab merged commit 248fd7c into ivy-llc:master Oct 7, 2022
@KareemMAX KareemMAX deleted the cumprod branch October 7, 2022 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TensorFlow Frontend Developing the TensorFlow Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cumprod
3 participants