tfc.remote() == False if python file entrypoint and distribution_strategy is None
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start in src/python/tensorflow_cloud/core/run.py around lines 266-282 to trace the Python-file entrypoint path when distribution_strategy is None. Then inspect ContainerBuilder._create_docker_file and verify that the TF_KERAS_RUNNING_REMOTELY environment variable reaches the entrypoint and makes tfc.remote() behave as expected.
Written by the indexing model from the issue text.
Description
The 'get_preprocessed_entry_point" isn't run if the distribution strategy is None and the entry point is a python file (ends in ".py"):
https://github.com/tensorflow/cloud/blob/master/src/python/tensorflow_cloud/core/run.py#L266-L282
This is a problem because this is the place where the TF_KERAS_RUNNING_REMOTELY is injected to the entrypoint. Because this isn't set, calls to tfc.remote() in the user's script won't work in the way expected (i.e., will always return False).
Proposed Solution:
Inject this into the Dockerfile directly instead as an ENV var and pass in when building the image (in ContainerBuilder._create_docker_file).
- Dominant language
- Python
- Stars
- 383
- Forks
- 93
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tensorflow/cloud
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
tensorflow/cloud#397 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
tensorflow/cloud#392 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
tensorflow/cloud#388 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
tensorflow/cloud#387 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 1/100
tensorflow/cloud#382 ·
All issues in tensorflow/cloud
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
use-agent-os/agent-os#3314 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AiursoftWeb/AnduinOS-2#19 ·