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

Add a warning when trying to load a custom op with a uncompatible version of TF. #1482

Merged
merged 7 commits into from
Apr 2, 2020
Merged

Add a warning when trying to load a custom op with a uncompatible version of TF. #1482

merged 7 commits into from
Apr 2, 2020

Conversation

gabrieldemarmiesse
Copy link
Member

@gabrieldemarmiesse gabrieldemarmiesse commented Mar 29, 2020

First step towards fixing #1317

@gabrieldemarmiesse gabrieldemarmiesse marked this pull request as ready for review March 29, 2020 17:21
@gabrieldemarmiesse
Copy link
Member Author

I believe we can add more info in the readme. Let's not bload the warning too much, it's already very descriptive.

Copy link
Member

@seanpmorgan seanpmorgan left a 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 "
Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member

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

Copy link
Member

@seanpmorgan seanpmorgan left a 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 "
Copy link
Member

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

@seanpmorgan seanpmorgan merged commit f095c20 into tensorflow:master Apr 2, 2020
jrruijli pushed a commit to jrruijli/addons that referenced this pull request Dec 23, 2020
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants