Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sileod authored Mar 19, 2023
1 parent ba37176 commit feca18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasknet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def forward(self, task, **kwargs):
return y

def factorize(self, base_index=0, tasks=[],labels=[]):
m_i = self.task_models_list[base_index]
m_i = copy.deepcopy(self.task_models_list[base_index])
classifiers = torch.nn.ModuleList([a.classifier for a in self.task_models_list])
if hasattr(m_i,'auto'):
del m_i.auto
Expand Down

0 comments on commit feca18c

Please sign in to comment.