From e653495365a1d50bb7660686f02e55594ea4b62c Mon Sep 17 00:00:00 2001 From: Tiezhen WANG Date: Mon, 22 Jun 2020 15:33:55 -0700 Subject: [PATCH] Update document to use latest TF API - gfile has been moved to tf.io PiperOrigin-RevId: 317748628 Change-Id: I6822e5991d892d238acb0976966e90f60e130961 --- tensorflow/lite/g3doc/convert/python_api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ```