We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 112a496 commit 11d1cebCopy full SHA for 11d1ceb
src/sagemaker_tensorflow_container/training.py
@@ -202,6 +202,10 @@ def _run_ps(env):
202
203
204
def _run_worker(env):
205
+ # when _run_ps is called CUDA_VISIBLE_DEVICES is set with os.environ. We need to unset it so the worker
206
+ # process can use the GPUs.
207
+ if os.environ.get('CUDA_VISIBLE_DEVICES'):
208
+ del os.environ['CUDA_VISIBLE_DEVICES']
209
env_vars = _env_vars_with_tf_config(env, ps_task=False)
210
<<<<<<< HEAD
211
if install_module:
0 commit comments