framework-reproducibility icon indicating copy to clipboard operation
framework-reproducibility copied to clipboard

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

Open SageAgastya opened this issue 2 years ago • 3 comments

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

SageAgastya avatar Aug 13 '21 20:08 SageAgastya

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 avatar Aug 17 '21 03:08 duncanriach

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 avatar Aug 17 '21 03:08 duncanriach

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

duncanriach avatar Aug 17 '21 03:08 duncanriach