Skip to content

doc: update tfs documentation for requirements.txt #1074

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 2 commits into from
Oct 3, 2019
Merged
Changes from 1 commit
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
5 changes: 2 additions & 3 deletions src/sagemaker/tensorflow/deploying_tensorflow_serving.rst
Original file line number Diff line number Diff line change
Expand Up @@ -424,15 +424,14 @@ in the following code:
You can also bring in external dependencies to help with your data
processing. There are 2 ways to do this:

1. If you included ``requirements.txt`` in your ``source_dir`` or in
your dependencies, the container installs the Python dependencies at runtime using ``pip install -r``:
1. If you included ``requirements.txt`` in your ``source_dir``, the container installs the Python dependencies at runtime using ``pip install -r``:

.. code::

from sagemaker.tensorflow.serving import Model

model = Model(entry_point='inference.py',
dependencies=['requirements.txt'],
source_dir='source/directory',
model_data='s3://mybucket/model.tar.gz',
role='MySageMakerRole')

Expand Down