Skip to content

Commit b8f5df7

Browse files
committed
chore: remove unnecessary child method
(it does the same thing than the parent).
1 parent 04a4a97 commit b8f5df7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

freqtrade/freqai/torch/PyTorchModelTrainer.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,12 @@ def save(self, path: Path):
179179
path,
180180
)
181181

182-
def load(self, path: Path):
183-
checkpoint = torch.load(path)
184-
return self.load_from_checkpoint(checkpoint)
185-
186182
def load_from_checkpoint(self, checkpoint: dict):
187183
"""
188184
when using continual_learning, DataDrawer will load the dictionary
189185
(containing state dicts and model_meta_data) by calling torch.load(path).
190186
you can access this dict from any class that inherits IFreqaiModel by calling
191-
get_init_model method.
187+
the get_init_model method.
192188
"""
193189
self.model.load_state_dict(checkpoint["model_state_dict"])
194190
self.optimizer.load_state_dict(checkpoint["optimizer_state_dict"])

0 commit comments

Comments
 (0)