Error trying to convert from saved model to tflite format

荒凉一梦 提交于 2019-12-04 15:20:02

ParseExample is used in the tf.estimator.export.build_parsing_serving_input_receiver_fn method.

If you want to avoid it you should use tf.estimator.export.build_raw_serving_input_receiver_fn.

Keep in mind that when you want to predict on the resulting SavedModel you should set the signature_def_key="predict".

So it will look like this predict_fn = predictor.from_saved_model(export_dir='tmp/...', signature_def_key="predict")

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!