Skip to content

update README on serving_input_fn #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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