莫烦老师的tensorflow降级方法

tf2.0以上版本的,开始加两行
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

 

https://blog.csdn.net/AI_future/article/details/107621549?utm_medium=distribute.pc_relevant_bbs_down.none-task-blog-baidujs-1.nonecase&depth_1-utm_source=distribute.pc_relevant_bbs_down.none-task-blog-baidujs-1.nonecase

你可能感兴趣的:(AI理论)