title: What are the parameters input_arrays and output_arrays that are needed to convert a frozen model '.pb' file to a '.tflite' file?
body: <p>I need to convert my <code>.pb</code> tensorflow model together with my <code>.cpkt</code> file to a <code>tflite</code> model to make it work in Mobile Devices. Is there any straight-forward way to find out how can I find what are the parameters I should use for input_arrays and output_arrays?</p>
  
  <pre><code>import tensorflow as tf
  
  graph_def_file = "/path/to/Downloads/mobilenet_v1_1.0_224/frozen_graph.pb"
  input_arrays = ["input"]
  output_arrays = ["MobilenetV1/Predictions/Softmax"]
  
  converter = tf.lite.TFLiteConverter.from_frozen_graph(
    graph_def_file, input_arrays, output_arrays)
  tflite_model = converter.convert()
  open("converted_model.tflite", "wb").write(tflite_model)
  </code></pre>