Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Mar 7, 2024
1 parent 069cd81 commit ac5350f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchbenchmark/models/BERT_pytorch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def get_module(self):
return self.model.model, self.example_inputs

def set_module(self, new_model):
self.model.bert = new_model
self.model.model = new_model

def eval(self) -> typing.Tuple[torch.Tensor]:
model = self.model
Expand Down

0 comments on commit ac5350f

Please sign in to comment.