1. AttributeError: module 'tensorflow' has no attribute 'select'
def test():
sess = tf.Session()
v1 = tf.constant([1, 3, 5, 7, 9])
v2 = tf.constant([3, 4, 5, 6, 7])
with sess.as_default():
print(tf.select(tf.greater(v1, v2), v1, v2).eval())
修改方法 : 将 select 方法修改为 where 方法即可
2.