import tensorflow as tf
tf.reset_default_graph()
module ‘tensorflow’ has no attribute ‘reset_default_graph’
tf.reset_default_graph()修改为tf.compat.v1.reset_default_graph()
module ‘tensorflow’ has no attribute ‘placeholder’
tf.placeholder修改为tf.compat.v1.placeholder
tf.placeholder() is not compatible with eager execution.
添加语句tf.compat.v1.disable_eager_execution()
module ‘tensorflow’ has no attribute ‘Session’
tf.Ses
修复TensorFlow代码中过时API的指南

最低0.47元/天 解锁文章
524

被折叠的 条评论
为什么被折叠?



