摘要: module ‘tensorflow‘ has no attribute ‘placeholder‘ # import tensorflow as tf改为 import tensorflow.compat.v1 as tftf.compat.v1.disable_eager_execution() 阅读全文
posted @ 2022-05-11 16:49 星涅爱别离 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 使用import tensorflow.contrib.slim as slim时报错,版本tf2.X pip install --upgrade tf_slim 将import tensorflow.contrib.slim as slim改为 import tf_slim as slim 阅读全文
posted @ 2022-05-11 16:48 星涅爱别离 阅读(552) 评论(0) 推荐(0) 编辑