📜  tf 1 兼容 colab - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:11.048000             🧑  作者: Mango

代码示例1
Specifying the TensorFlow version
Running 

import tensorflow 

will import the default version (currently 2.x). You can use 1.x 
by running a cell with the 

%tensorflow_version 1.x

magic before you run import tensorflow.