Skip to content

Instantly share code, notes, and snippets.

@frenzy2106
Created March 17, 2020 10:23
Show Gist options
  • Save frenzy2106/219eb3969a8b851e705ff8bb7465f4ad to your computer and use it in GitHub Desktop.
Save frenzy2106/219eb3969a8b851e705ff8bb7465f4ad to your computer and use it in GitHub Desktop.
Ensure only TensorFlow 2.x is used
try:
# %tensorflow_version only exists in Colab.
%tensorflow_version 2.x
except Exception:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment