Skip to content

Commit 816176f

Browse files
authored
update README on serving_input_fn (aws#93)
1 parent 92d41d9 commit 816176f

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
@@ -914,9 +914,10 @@ More details on how to create input functions can be find in `Building Input Fun
914914
Creating a ``serving_input_fn``
915915
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
916916
917-
During training, ``train_input_fn`` ingests data and prepares it for use by the model.
918-
At the end of training, similarly, ``serving_input_fn`` is used to create the model that
919-
is exported for TensorFlow Serving. This function has the following purposes:
917+
``serving_input_fn`` is used to define the shapes and types of the inputs
918+
the model accepts when the model is exported for Tensorflow Serving. ``serving_input_fn`` is called
919+
at the end of model training and is not called during inference. (If you'd like to preprocess inference data,
920+
please see ``input_fn``). This function has the following purposes:
920921
921922
- To add placeholders to the graph that the serving system will feed with inference requests.
922923
- To add any additional ops needed to convert data from the input format into the feature Tensors

0 commit comments

Comments
 (0)