Skip to content

Commit 957a71c

Browse files
committed
documentation: fix docs in regards to transform_fn for mxnet
1 parent 4e7e0db commit 957a71c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/using_mxnet.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,6 @@ Using ``transform_fn``
689689
''''''''''''''''''''''
690690

691691
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.
692-
This will override any implementation of ``input_fn``, ``predict_fn``, or ``output_fn``.
693692
``transform_fn`` has the following signature:
694693

695694
.. code:: python
@@ -704,6 +703,8 @@ The return object should be one of the following:
704703
- a tuple with two items: the response data and ``accept_type`` (the content type of the response data), or
705704
- a Flask response object: http://flask.pocoo.org/docs/1.0/api/#response-objects
706705

706+
**Note:** We cannot use ``transform_fn`` implementation with ``input_fn``, ``predict_fn``, and/or ``output_fn``.
707+
707708
You can find examples of hosting scripts using this structure in the example notebooks, such as the `mxnet_gluon_sentiment <https://github.com/awslabs/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/mxnet_gluon_sentiment/sentiment.py#L344-L387>`__ notebook.
708709

709710
Working with existing model data and training jobs

0 commit comments

Comments
 (0)