Skip to content

Commit

Permalink
update README on serving_input_fn (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
andremoeller committed Mar 17, 2018
1 parent 92d41d9 commit 816176f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -914,9 +914,10 @@ More details on how to create input functions can be find in `Building Input Fun
Creating a ``serving_input_fn``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
During training, ``train_input_fn`` ingests data and prepares it for use by the model.
At the end of training, similarly, ``serving_input_fn`` is used to create the model that
is exported for TensorFlow Serving. This function has the following purposes:
``serving_input_fn`` is used to define the shapes and types of the inputs
the model accepts when the model is exported for Tensorflow Serving. ``serving_input_fn`` is called
at the end of model training and is not called during inference. (If you'd like to preprocess inference data,
please see ``input_fn``). This function has the following purposes:
- To add placeholders to the graph that the serving system will feed with inference requests.
- To add any additional ops needed to convert data from the input format into the feature Tensors
Expand Down

0 comments on commit 816176f

Please sign in to comment.