tensorflow-serving

How to import an saved Tensorflow model train using tf.estimator and predict on input data

Deadly 提交于 2019-11-26 11:13:27
I have save the model using tf.estimator .method export_savedmodel as follows: export_dir="exportModel/" feature_spec = tf.feature_column.make_parse_example_spec(feature_columns) input_receiver_fn = tf.estimator.export.build_parsing_serving_input_receiver_fn(feature_spec) classifier.export_savedmodel(export_dir, input_receiver_fn, as_text=False, checkpoint_path="Model/model.ckpt-400") How can I import this saved model and use for predictions? I tried to search for a good base example, but it appears the documentation and samples are a bit scattered for this topic. So let's start with a base

How to import an saved Tensorflow model train using tf.estimator and predict on input data

痴心易碎 提交于 2019-11-26 02:18:51
问题 I have save the model using tf.estimator .method export_savedmodel as follows: export_dir=\"exportModel/\" feature_spec = tf.feature_column.make_parse_example_spec(feature_columns) input_receiver_fn = tf.estimator.export.build_parsing_serving_input_receiver_fn(feature_spec) classifier.export_savedmodel(export_dir, input_receiver_fn, as_text=False, checkpoint_path=\"Model/model.ckpt-400\") How can I import this saved model and use for predictions? 回答1: I tried to search for a good base example