title: Keras + TensorFlow: “module 'tensorflow' has no attribute 'merge_all_summaries''”
body: <p>Very similar to <a href="https://stackoverflow.com/questions/40046619/keras-tensorflow-gives-the-error-no-attribute-control-flow-ops">Keras + tensorflow gives the error &quot;no attribute &#39;control_flow_ops&#39;&quot;</a>, from the Convolutional autoencoder example from <a href="https://blog.keras.io/building-autoencoders-in-keras.html" rel="noreferrer">https://blog.keras.io/building-autoencoders-in-keras.html</a> I get the error</p>
  
  <pre><code>[...]lib/python3.5/site-packages/keras/callbacks.py in _set_model(self, model)
      478                     tf.histogram_summary('{}_out'.format(layer),
      479                                          layer.output)
  --&gt; 480         self.merged = tf.merge_all_summaries()
      481         if self.write_graph:
      482             if parse_version(tf.__version__) &gt;= parse_version('0.8.0'):
  
  AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries'
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>import tensorflow as tf
  tf.merge_all_summaries = tf
  </code></pre>
  
  <p>but that did not work. What should I do?</p>
  
  <p>In <a href="https://stackoverflow.com/questions/42481938/attributeerror-module-object-has-no-attribute-merge-all-summaries">AttributeError: &#39;module&#39; object has no attribute &#39;merge_all_summaries&#39;</a> the error is mentioned. I also have the version 1.0.0. But what is the solution? I don't want to downgrade TensorFlow.</p>