title: How to fix this module 'tensorflow' has no attribute 'lite'?
body: <p>I copied the code from <a href="https://www.tensorflow.org/lite/convert/python_api" rel="nofollow noreferrer">https://www.tensorflow.org/lite/convert/python_api</a>
  and while running the code it gives me this error module 'tensorflow' has no attribute 'lite'</p>
  
  <p>I haven't seen any tutorials that can fix my problem, so am trying to ask here if anyone can help me with my problem</p>
  
  <p>This is the copied code from tensorflow lite official documentation and when I tried to run it, it gives me this error <strong>"module 'tensorflow' has no attribute 'lite'"</strong></p>
  
  <pre><code>import tensorflow as tf
  
  img = tf.placeholder(name="img", dtype=tf.float32, shape=(1, 64, 64, 3))
  var = tf.get_variable("weights", dtype=tf.float32, shape=(1, 64, 64, 3))
  val = img + var
  out = tf.identity(val, name="out")
  
  with tf.Session() as sess:
    sess.run(tf.global_variables_initializer())
    converter = tf.lite.TFLiteConverter.from_session(sess, [img], [out])
    tflite_model = converter.convert()
    open("converted_model.tflite", "wb").write(tflite_model)
  </code></pre>