tobegit3hub / simple_tensorflow_serving

Generic and easy-to-use serving service for machine learning models
https://stfs.readthedocs.io
Apache License 2.0
757 stars 195 forks source link

如何在inference 前加一些对数据的预处理代码 #55

Open xxllp opened 5 years ago

xxllp commented 5 years ago

还有个疑问 Example 为 {"model_version": 1, "data": {"keys": [[1.0], [2.0]], "features": [[10, 10, 10, 8, 6, 1, 8, 9, 1], [6, 2, 1, 1, 1, 1, 7, 1, 1]]}}. 其实我还是需要知道input op name 不然会报错的哈

tobegit3hub commented 5 years ago

You can export with the preprocess python function in the SavedModel. This needs more document and you may find it in the source code.