-
Notifications
You must be signed in to change notification settings - Fork 1.2k
requirements.txt file is processed in tensorflow script mode even if not specified #839
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
Comments
hi @filthysocks, apologies for the confusion! the |
@laurenyu Is this still the case? I receive error when using script mode.
Can you confirm what are legacy images and how it relates to script mode? |
@jerrygb the Specifically about this issue, the way to use estimator = TensorFlow(
entry_point='train.py',
source_dir='path/to/source',
...
) |
Thanks @laurenyu |
@laurenyu Can you explain again how to make TensorFlow estimator install packages using a requirements file before running my script? |
@Nimrods at this time, the recommended method (assuming TF > 1.13) is to use a shell script for your entry point and have it call There are some other ways to also use a requirements file:
Given popular demand, we are working on returning to automatically detecting if there's a file named "requirements.txt" and pip installing it for a future release. (This is also the behavior we have settled on with the other frameworks.) |
@laurenyu Thank you! |
docs have been updated in #1512. |
System Information
Describe the problem
I'm not 100% sure if its a bug or just a confusing documentation. However, when i want to train a TensorFlow model and specify a Src dir that contains a requirements.txt at its root, then this requirements.txt is processed even if i didn't specify one. Though, If I specify a requirements.txt then an exception is thrown, telling me i cannot specify a requirements.txt in script mode.
Minimal repro / logs
log:
package struct:
The text was updated successfully, but these errors were encountered: