摘要: 问题原因在于在tf2下调用了tf1的API,而tf2中是没有placeholder的。 解决方法: 使用: import tensorflow.compat.v1 as tftf.disable_v2_behavior() 替换: import tensorflow as tf 阅读全文
posted @ 2021-08-09 08:54 lzq的小窝 阅读(772) 评论(0) 推荐(0) 编辑