In the environment of Tensorflow2.0, run Tensorflow1.x

Just use this at the beginning

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

 

Published 16 original articles · praised 0 · visits 450

Guess you like

Origin blog.csdn.net/weixin_43951831/article/details/105098784