Skip to content

Commit

Permalink
fix overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrijeuseew committed May 15, 2023
1 parent 1c4b3e4 commit d87e865
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import torch
import torch.nn as nn
import torch.nn.functional as F
from overrides import overrides
from transformers import AutoConfig, AutoModel

from deeppavlov.core.commands.utils import expand_path
Expand Down Expand Up @@ -315,7 +314,6 @@ def is_data_parallel(self) -> bool:
return isinstance(self.model, torch.nn.DataParallel)

# TODO this method requires massive refactoring
@overrides
def load(self, fname=None):
if fname is not None:
self.load_path = fname
Expand Down

0 comments on commit d87e865

Please sign in to comment.