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 ae8703c commit 1224c13Copy full SHA for 1224c13
src/sagemaker_tensorflow_container/training.py
@@ -204,7 +204,7 @@ def _log_model_missing_warning(model_dir):
204
205
206
def _model_dir_with_training_job(model_dir, job_name):
207
- if model_dir.startswith("/opt/ml"):
+ if model_dir and model_dir.startswith("/opt/ml"):
208
return model_dir
209
else:
210
return "{}/{}/model".format(model_dir, job_name)
0 commit comments