Skip to content

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
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