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

Adding casts to the if test so it passes on GPU #528

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

Craigacp
Copy link
Collaborator

@Craigacp Craigacp commented Mar 8, 2024

ops.math.neg causes eigen to segfault on GPUs now we've upgraded to TF 2.15. This PR fixes the one test where we do that so that there are casts around it. Not sure how to indicate that users shouldn't use this op on GPU as the op definition accepts ints and it's autogenerated.

@karllessard
Copy link
Collaborator

Was this reported to TF core? Or is it an eigen problem?

@karllessard
Copy link
Collaborator

As we plan to upgrade to TF2.16, let see if the bug is still there before merging this

@Craigacp
Copy link
Collaborator Author

Craigacp commented Mar 25, 2024

The if test without this patch still fails on GPU with TF 2.16 (#531).

Copy link
Collaborator

@karllessard karllessard left a comment

Choose a reason for hiding this comment

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

Ideally we would wrap this .neg operation with our own that would take care of the casting. But let's merge it so at least the build won't fail on GPUs.

@karllessard karllessard merged commit 57acdc8 into tensorflow:master Mar 26, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants