Skip to content

Commit 4747fd0

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -905,9 +905,10 @@ More details on how to create input functions can be find in `Building Input Fun
905905
Creating a ``serving_input_fn``
906906
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
907907
908-
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:
908+
``serving_input_fn`` is used to define the shapes and types of the inputs
909+
the model accepts when the model is exported for Tensorflow Serving. ``serving_input_fn`` is called
910+
at the end of model training and is not called during inference. (If you'd like to preprocess inference data,
911+
please see ``input_fn``). This function has the following purposes:
911912
912913
- To add placeholders to the graph that the serving system will feed with inference requests.
913914
- To add any additional ops needed to convert data from the input format into the feature Tensors

0 commit comments

Comments
 (0)