你好,我在一个tensorflow教程中遇到了以下内容:
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
但是我不理解这行代码的含义:
%tensorflow_version 2.x
我能为您提供帮助,以下是您需要翻译的内容:
请问这里的模块标志有什么作用?谢谢。
print type(%)
? - lainatnavi