We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 597a4f5 commit 572b19eCopy full SHA for 572b19e
src/sagemaker/estimator.py
@@ -85,7 +85,7 @@ def __init__(self, role, train_instance_count, train_instance_type,
85
if self.train_instance_type == 'local_gpu' and self.train_instance_count > 1:
86
raise RuntimeError("Distributed Training in Local GPU is not supported")
87
88
- self.sagemaker_session = LocalSession()
+ self.sagemaker_session = sagemaker_session or LocalSession()
89
else:
90
self.local_mode = False
91
self.sagemaker_session = sagemaker_session or Session()
0 commit comments