diff --git a/tensorflow/lite/g3doc/convert/python_api.md b/tensorflow/lite/g3doc/convert/python_api.md index ff14c4b92e7..3171306af13 100644 --- a/tensorflow/lite/g3doc/convert/python_api.md +++ b/tensorflow/lite/g3doc/convert/python_api.md @@ -53,7 +53,7 @@ converter = tf.lite.TFLiteConverter.from_saved_model(export_dir) tflite_model = converter.convert() # Save the TF Lite model. -with tf.gfile.GFile('model.tflite', 'wb') as f: +with tf.io.gfile.GFile('model.tflite', 'wb') as f: f.write(tflite_model) ``` @@ -125,7 +125,7 @@ converter = tf.lite.TFLiteConverter.from_concrete_functions([concrete_func]) tflite_model = converter.convert() # Save the TF Lite model. -with tf.gfile.GFile('model.tflite', 'wb') as f: +with tf.io.gfile.GFile('model.tflite', 'wb') as f: f.write(tflite_model) ```