if tf.__version__.startswith("1."): print("Error!! You are using tensorflow-v1")
At this point the code will still run. Does the version of tensorflow affect the functionality of the app?
yes, I check only if the version requirement has been satisfied. If you are using tensorflow 1.x, this program will report errors and halt. In this case, this message can give a hint for debugging.
but this doesn't halt.. throw an error??
Agree, I have updated my code.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
At this point the code will still run. Does the version of tensorflow affect the functionality of the app?
yes, I check only if the version requirement has been satisfied. If you are using tensorflow 1.x, this program will report errors and halt. In this case, this message can give a hint for debugging.
but this doesn't halt.. throw an error??
Agree, I have updated my code.