Skip to content

Commit 572b19e

Browse files
derekhhlukmis
authored andcommitted
Correctly pass session object while creating Estimator (#149)
1 parent 597a4f5 commit 572b19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/estimator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(self, role, train_instance_count, train_instance_type,
8585
if self.train_instance_type == 'local_gpu' and self.train_instance_count > 1:
8686
raise RuntimeError("Distributed Training in Local GPU is not supported")
8787

88-
self.sagemaker_session = LocalSession()
88+
self.sagemaker_session = sagemaker_session or LocalSession()
8989
else:
9090
self.local_mode = False
9191
self.sagemaker_session = sagemaker_session or Session()

0 commit comments

Comments
 (0)