AttributeError: module ‘tensorflow‘ has no attribute ‘types‘
原代码为:y = tf.placeholder(tf.types.float32,[None, n_classes])
错误代码显示为:
AttributeError: module 'tensorflow' has no attribute 'types'
订正为:
y = tf.placeholder(tf.float32,[None, n_classes])
将原代码中的types去掉
原创
2020-08-03 19:36:43 ·
214 阅读 ·
0 评论