You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/using_mxnet.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -532,8 +532,8 @@ For more information on how to enable MXNet to interact with Amazon Elastic Infe
532
532
Model serving
533
533
^^^^^^^^^^^^^
534
534
535
-
After the SageMaker model server has loaded your model, by calling either the default ``model_fn`` or the implementation in your script, SageMaker will serve your model.
536
-
Model serving is the process of responding to inference requests, received by SageMaker InvokeEndpoint API calls.
535
+
After the SageMaker model server loads your model by calling either the default ``model_fn`` or the implementation in your script, SageMaker serves your model.
536
+
Model serving is the process of responding to inference requests received by SageMaker ``InvokeEndpoint`` API calls.
537
537
Defining how to handle these requests can be done in one of two ways:
538
538
539
539
- using ``input_fn``, ``predict_fn``, and ``output_fn``, some of which may be your own implementations
@@ -672,15 +672,15 @@ The ``output_fn`` has the following signature:
672
672
673
673
defoutput_fn(prediction, content_type)
674
674
675
-
Where ``prediction`` is the result of invoking ``predict_fn`` and
676
-
``content_type`` is the InvokeEndpoint requested response content type. The function should return a byte array of data serialized to the expected content type.
675
+
Where ``prediction`` is the result of invoking ``predict_fn`` and ``content_type`` is the requested response content type for ``InvokeEndpoint``.
676
+
The function should return an array of bytes serialized to the expected content type.
677
677
678
678
The default implementation expects ``prediction`` to be an ``NDArray`` and can serialize the result to either JSON or CSV. It accepts response content types of "application/json" and "text/csv".
679
679
680
680
Using ``transform_fn``
681
681
''''''''''''''''''''''
682
682
683
-
If you would rather not structure your code around the three methods described above, you can also define your own ``transform_fn`` to handle inference requests. This function has the following signature:
683
+
If you would rather not structure your code around the three methods described above, you can instead define your own ``transform_fn`` to handle inference requests. This function has the following signature:
Copy file name to clipboardExpand all lines: src/sagemaker/mxnet/README.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -538,8 +538,8 @@ For more information on how to enable MXNet to interact with Amazon Elastic Infe
538
538
Model serving
539
539
^^^^^^^^^^^^^
540
540
541
-
After the SageMaker model server has loaded your model, by calling either the default ``model_fn`` or the implementation in your script, SageMaker will serve your model.
542
-
Model serving is the process of responding to inference requests, received by SageMaker InvokeEndpoint API calls.
541
+
After the SageMaker model server loads your model by calling either the default ``model_fn`` or the implementation in your script, SageMaker serves your model.
542
+
Model serving is the process of responding to inference requests received by SageMaker ``InvokeEndpoint`` API calls.
543
543
Defining how to handle these requests can be done in one of two ways:
544
544
545
545
- using ``input_fn``, ``predict_fn``, and ``output_fn``, some of which may be your own implementations
@@ -678,15 +678,15 @@ The ``output_fn`` has the following signature:
678
678
679
679
defoutput_fn(prediction, content_type)
680
680
681
-
Where ``prediction`` is the result of invoking ``predict_fn`` and
682
-
``content_type`` is the InvokeEndpoint requested response content type. The function should return a byte array of data serialized to the expected content type.
681
+
Where ``prediction`` is the result of invoking ``predict_fn`` and ``content_type`` is the requested response content type for ``InvokeEndpoint``.
682
+
The function should return an array of bytes serialized to the expected content type.
683
683
684
684
The default implementation expects ``prediction`` to be an ``NDArray`` and can serialize the result to either JSON or CSV. It accepts response content types of "application/json" and "text/csv".
685
685
686
686
Using ``transform_fn``
687
687
''''''''''''''''''''''
688
688
689
-
If you would rather not structure your code around the three methods described above, you can also define your own ``transform_fn`` to handle inference requests. This function has the following signature:
689
+
If you would rather not structure your code around the three methods described above, you can instead define your own ``transform_fn`` to handle inference requests. This function has the following signature:
0 commit comments