Skip to content

Commit b083532

Browse files
author
Andre Moeller
committed
update README on serving_input_fn
1 parent ea0c5f9 commit b083532

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,8 +906,10 @@ Creating a ``serving_input_fn``
906906
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
907907
908908
During training, ``train_input_fn`` ingests data and prepares it for use by the model.
909-
At the end of training, similarly, ``serving_input_fn`` is used to create the model that
910-
is exported for TensorFlow Serving. This function has the following purposes:
909+
``serving_input_fn`` is used to define the shapes and types of the inputs
910+
the model accepts when the model is exported for Tensorflow Serving. ``serving_input_fn`` is called
911+
at the end of model training and is not called during inference. (If you'd like to preprocess inference data,
912+
please see ``input_fn``). This function has the following purposes:
911913
912914
- To add placeholders to the graph that the serving system will feed with inference requests.
913915
- To add any additional ops needed to convert data from the input format into the feature Tensors

0 commit comments

Comments
 (0)