天天看点

如何用Tensorflow2.X运行1.X的代码。

import tensorflow.compat.v1 as tf

tf.compat.v1.disable_eager_execution()

tf.disable_v2_behavior()

替换import tensorflow as tf

继续阅读