Skip to content

doc: fix TF requirements.txt documentation #1526

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 26, 2020
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: 2 additions & 2 deletions doc/using_tf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ If there are other packages you want to use with your script, you can use a ``re

For training, support for installing packages using ``requirements.txt`` varies by TensorFlow version as follows:

- For TensorFlow 1.11 or newer using Script Mode without Horovod, TensorFlow 1.15.2 with Python 3.7 or newer, and TensorFlow 2.2 or newer:
- For TensorFlow 1.15.2 with Python 3.7 or newer, and TensorFlow 2.2 or newer:
- Include a ``requirements.txt`` file in the same directory as your training script.
- You must specify this directory using the ``source_dir`` argument when creating a TensorFlow estimator.
- For older versions of TensorFlow using Script Mode with Horovod:
- For older versions of TensorFlow using Script Mode (TensorFlow 1.11-1.15.2, 2.0-2.1 with Python 2.7 or 3.6):
- Write a shell script for your entry point that first calls ``pip install -r requirements.txt``, then runs your training script.
- For an example of using shell scripts, see `this example notebook <https://github.com/awslabs/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/tensorflow_script_mode_using_shell_commands/tensorflow_script_mode_using_shell_commands.ipynb>`__.
- For older versions of TensorFlow using Legacy Mode:
Expand Down