Skip to content

documentation: fix docs in regards to transform_fn for mxnet #790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions doc/using_mxnet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,7 @@ The default implementation expects ``prediction`` to be an ``NDArray`` and can s
Using ``transform_fn``
''''''''''''''''''''''

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 will override any implementation of ``input_fn``, ``predict_fn``, or ``output_fn``.
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. An error will be thrown if a ``transform_fn`` is present in conjunction with any ``input_fn``, ``predict_fn``, and/or ``output_fn``.
``transform_fn`` has the following signature:

.. code:: python
Expand Down