From: https://stackoverflow.com/questions/50443411/how-to-load-a-tflite-model-in-script
Handles the case of multiple inputs and outputs.
interpreter = tf.lite.Interpreter(model_path=mfile)
interpreter.allocate_tensors()
# get input and output layer handles
input_details = sorted(interpreter.get_input_details(), key=lambda x:x['name'])