如何恢复使用 Estimator API 构建的预训练模型?

how can i restore the pre-trained model built with Estimator API?

提前致谢。

我是 tensorflow 的新手,并按照本教程训练了这个模型。 https://www.tensorflow.org/tutorials/layers 我想在另一个地方恢复这个模型以获得预测。但我找不到办法。已经为此工作了两天,但仍然不知道该怎么做 it.i 如果有人能给我一些建议,我们将不胜感激。 我尝试了以下方法。

saver=tf.train.import_meta_graph('./model.meta')
saver.restore(sess,tf.train.latest_checkpoint('./')

我想通过以上这些我已经恢复了我的模型?但我怎样才能到达操作? 如果我问了愚蠢的问题,请不要开枪。

估计分类器有预测。
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/estimator/estimator.py

predict_input_fn=tf.estimator.inputs.numpy_input_fn(x={"x":x_value},batch_size=1,shuffle=False)
predict_result=mnist_classifier.predict(input_fn=predict_input_fn,predict_keys="classes")

那么问题就解决了^^