input1 = tf.placeholder(tf.types.float32)
报错,提示AttributeError: module 'tensorflow' has no attribute 'types'
新版本语法变了:
input1 = tf.compat.v1.placeholder(tf.float32)
AttributeError: module 'tensorflow' has no attribute 'types'
最新推荐文章于 2024-03-13 11:11:40 发布