非常相似Keras + tensorflow gives the error "no attribute 'control_flow_ops'",從卷積自動編碼例如從https://blog.keras.io/building-autoencoders-in-keras.html我得到Keras + TensorFlow:「模塊 'tensorflow' 有沒有屬性'merge_all_summaries'」
[...]lib/python3.5/site-packages/keras/callbacks.py in _set_model(self, model)
478 tf.histogram_summary('{}_out'.format(layer),
479 layer.output)
--> 480 self.merged = tf.merge_all_summaries()
481 if self.write_graph:
482 if parse_version(tf.__version__) >= parse_version('0.8.0'):
AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries'
我試圖
import tensorflow as tf
tf.merge_all_summaries = tf
錯誤
但沒有奏效。我該怎麼辦?
在AttributeError: 'module' object has no attribute 'merge_all_summaries'錯誤被提及。我也有版本1.0.0。但是,解決方案是什麼?我不想降級TensorFlow。
我們可以用anaconda或至少是'pip'來做到這一點嗎? – Make42
我覺得'pip install -U keras'應該這樣做。 – mrry