Skip to content

Commit 4e1f0af

Browse files
committed
fix: logic error in MWMS
1 parent f8ce3f0 commit 4e1f0af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sagemaker_tensorflow_container/training.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ def train(env, cmd_args):
183183

184184
elif multi_worker_mirrored_strategy_enabled:
185185

186-
env_vars["TF_CONFIG"] = _build_tf_config_for_mwms(
187-
hosts=env.hosts, current_host=env.current_host
186+
env_vars["TF_CONFIG"] = json.dumps(
187+
_build_tf_config_for_mwms(hosts=env.hosts, current_host=env.current_host)
188188
)
189189
logger.info("Running distributed training job with multi_worker_mirrored_strategy setup")
190190

0 commit comments

Comments
 (0)