Hi I encounter these lines in a tensorflow tutorial:
from __future__ import absolute_import, division, print_function, unicode_literals
# Install TensorFlow
try:
# %tensorflow_version only exists in Colab.
%tensorflow_version 2.x
except Exception:
pass
import tensorflow as tf
But I do not understand this line:
%tensorflow_version 2.x
May I know what the modular sign is doing here? Thanks