天天看點

如何用Tensorflow2.X運作1.X的代碼。

import tensorflow.compat.v1 as tf

tf.compat.v1.disable_eager_execution()

tf.disable_v2_behavior()

替換import tensorflow as tf

繼續閱讀