Skip to content

documentation: edit to clarify how to use inference.py #3194

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
Jun 28, 2022
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
4 changes: 3 additions & 1 deletion doc/frameworks/tensorflow/using_tf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ Create Python Scripts for Custom Input and Output Formats
---------------------------------------------------------

You can add your customized Python code to process your input and output data.
This customized Python code must be named ``inference.py`` and specified through the ``entry_point`` parameter:
This customized Python code must be named ``inference.py`` and is specified through the ``entry_point`` parameter:

.. code::

Expand All @@ -769,6 +769,8 @@ This customized Python code must be named ``inference.py`` and specified through
model_data='s3://mybucket/model.tar.gz',
role='MySageMakerRole')

In the example above, ``inference.py`` is assumed to be a file inside ``model.tar.gz``. If you want to use a local file instead, you must add the ``source_dir`` argument. See the documentation on `TensorFlowModel <https://sagemaker.readthedocs.io/en/stable/frameworks/tensorflow/sagemaker.tensorflow.html#sagemaker.tensorflow.model.TensorFlowModel>`_.

How to implement the pre- and/or post-processing handler(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down