摘要: AttributeError: module 'tensorflow' has no attribute 'placeholder' 原因是在tf2的版本下使用了1的API 改正方法: import tensorflow.compat.v1 as tf tf.disable_v2_behavior( 阅读全文
posted @ 2020-12-02 11:05 转角102 阅读(1765) 评论(0) 推荐(0) 编辑