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

Early versions of TensorFlow (e.g. 1.9) do not have a version attribute #37

Open
SageAgastya opened this issue Aug 13, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@SageAgastya
Copy link

I am getting AttributeError for tf 1.9, saying that tensorflow doesn't have "version" as attribute.
Can you help?

@duncanriach
Copy link
Collaborator

Hi @SageAgastya,

I assume that you're attempting to apply the patch function from the PyPI distribution. We have paused development in the middle of a major update and will not be able to make changes to the PyPI distribution anytime soon. However, even if version 1.9 of TensorFlow had a version attribute, and therefore didn't exit with a TypeError for that reason, the patch code would proceed to exit with another TypeError and a message saying, "No patch available for version 1.9 of TensorFlow".

The patch function is not intended to be executed on any NGC TensorFlow containers nor on versions of stock TensorFlow earlier than 1.14 and is designed to throw a TypeError if that is attempted.

I hope this helps. I'm going to close this issue, but I'm happy to continue this discussion, if you wish.

Duncan

@duncanriach
Copy link
Collaborator

Actually, I'm going to leave this open so that it serves as a marker to possibly address this issue in a future release. We could check if there is a version attribute and if there is none then we could assume that the TensorFlow version is earlier than 1.14.

@duncanriach duncanriach reopened this Aug 17, 2021
@duncanriach duncanriach changed the title Support for TF1.9 Early versions of TensorFlow (e.g. 1.9) do not have a version attribute. Aug 17, 2021
@duncanriach duncanriach changed the title Early versions of TensorFlow (e.g. 1.9) do not have a version attribute. Early versions of TensorFlow (e.g. 1.9) do not have a version attribute Aug 17, 2021
@duncanriach duncanriach added the bug Something isn't working label Aug 17, 2021
@duncanriach
Copy link
Collaborator

Thank you, @SageAgastya, for bringing this to my attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants