Skip to content

Commit 8560f37

Browse files
authored
fix link to npy (aws#202)
1 parent 7550b6a commit 8560f37

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,12 +1957,10 @@ You can provide your own implementations for these functions in your hosting scr
19571957
If you omit any definition then the SageMaker Chainer model server will use its default implementation for that
19581958
function.
19591959

1960-
The ``RealTimePredictor`` used by Chainer in the SageMaker Python SDK serializes NumPy arrays to the NPY_ format
1960+
The ``RealTimePredictor`` used by Chainer in the SageMaker Python SDK serializes NumPy arrays to the `NPY <https://docs.scipy.org/doc/numpy/neps/npy-format.html>`_ format
19611961
by default, with Content-Type ``application/x-npy``. The SageMaker Chainer model server can deserialize NPY-formatted
19621962
data (along with JSON and CSV data).
19631963

1964-
.. _NPY https://docs.scipy.org/doc/numpy/neps/npy-format.html
1965-
19661964
If you rely solely on the SageMaker Chainer model server defaults, you get the following functionality:
19671965

19681966
- Prediction on models that implement the ``__call__`` method
@@ -1998,7 +1996,7 @@ Where ``request_body`` is a byte buffer and ``request_content_type`` is a Python
19981996
The SageMaker Chainer model server provides a default implementation of ``input_fn``.
19991997
This function deserializes JSON, CSV, or NPY encoded data into a NumPy array.
20001998

2001-
Default NPY deserialization requires ``request_body`` to follow the NPY_ format. For Chainer, the Python SDK
1999+
Default NPY deserialization requires ``request_body`` to follow the `NPY <https://docs.scipy.org/doc/numpy/neps/npy-format.html>`_ format. For Chainer, the Python SDK
20022000
defaults to sending prediction requests with this format.
20032001

20042002
Default json deserialization requires ``request_body`` contain a single json list.

0 commit comments

Comments
 (0)