mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
merge
This commit is contained in:
1 parent
fc1653e337
commit
6876f60098
1 file changed
+1
-1
@@ -399,7 +399,7 @@ class Trainer(TrainerIO):
|
||||
:return:
|
||||
"""
|
||||
ref_model = model
|
||||
if self.on_gpu:
|
||||
if self.data_parallel:
|
||||
ref_model = model.module
|
||||
|
||||
ref_model.trainer = self
|
||||
|
||||
Reference in new issue
Block a user