This commit is contained in:
William Falcon
2019-07-13 22:21:17 -04:00
parent fc1653e337
commit 6876f60098
+1 -1
View File
@@ -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