sagemaker-python-sdk icon indicating copy to clipboard operation
sagemaker-python-sdk copied to clipboard

documentation error

Open pratapram opened this issue 8 years ago • 3 comments

Under section "Creating a serving_input_fn", the documentation claims:

"At the end of training, similarly, serving_input_fn is used to create the model that is exported for TensorFlow Serving."

Is this accurate? Based on my understanding: I dont think serving_input_fn() is used to create the model. This is also inconsistent with its role described a few lines afterwards.

pratapram avatar Mar 09 '18 18:03 pratapram

Hi @pratapram,

I think you're correct. Just like the TensorFlow docs, it should say:

At serving time, similarly, a serving_input_receiver_fn() accepts inference requests and prepares them for the model.

I'll send a PR for this. Thanks!

andremoeller avatar Mar 09 '18 19:03 andremoeller

thanks @andremoeller for the quick response. The new function you mention serving_input_receiver_fn() is not referenced anywhere else. So, if you can point a link to that documentation that would be very helpful.

pratapram avatar Mar 09 '18 21:03 pratapram

Hi @pratapram,

serving_input_fn is the relevant SageMaker Python SDK function rather than serving_input_receiver_fn. Just to clarify, the PR changes the docs to read:

At the end of training, similarly, serving_input_fn accepts inference requests and is exported for TensorFlow Serving.

andremoeller avatar Mar 09 '18 21:03 andremoeller