-
Notifications
You must be signed in to change notification settings - Fork 610
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
Add a warning when trying to load a custom op with a uncompatible version of TF. #1482
Add a warning when trying to load a custom op with a uncompatible version of TF. #1482
Conversation
I believe we can add more info in the readme. Let's not bload the warning too much, it's already very descriptive. |
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.
Thanks! Almost LGTM one additional piece of info
"https://github.com/tensorflow/addons#gpucpu-custom-ops " | ||
"\n\n" | ||
"You can also change the TensorFlow version installed on your system. " | ||
"You would need a TensorFlow version equal to or above {} and strictly " |
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.
Can you add "installed from pip" somewhere in there. I suspect that is just as likely of an issue as incompatible version
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.
I'll add it. But this warning won't appear if someone is building from source. I don't know if there is any way we can detect that. If TF was exposing an API to get info about the build, we could use that. As far as I know, such an API doesn't exist.
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.
I don't believe so. If there was it would be in https://www.tensorflow.org/api_docs/python/tf/sysconfig most likely
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.
LGTM thanks for getting this in place!
"https://github.com/tensorflow/addons#gpucpu-custom-ops " | ||
"\n\n" | ||
"You can also change the TensorFlow version installed on your system. " | ||
"You would need a TensorFlow version equal to or above {} and strictly " |
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.
I don't believe so. If there was it would be in https://www.tensorflow.org/api_docs/python/tf/sysconfig most likely
…sion of TF. (tensorflow#1482) * Fixing the gpu build. * Add a warning when trying to load a custom op. * Add also the nightly version. * Better formatting. * Update message. * Added message about non-pip TF.
First step towards fixing #1317