mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-04 05:10:24 +00:00
pytorch - trainer - revert load changes
This commit is contained in:
@@ -181,8 +181,8 @@ class PyTorchModelTrainer(PyTorchTrainerInterface):
|
||||
"pytrainer": self
|
||||
}, path)
|
||||
|
||||
def load(self, path: Path, device: Optional[str] = None):
|
||||
checkpoint = torch.load(path, map_location=device)
|
||||
def load(self, path: Path):
|
||||
checkpoint = torch.load(path)
|
||||
return self.load_from_checkpoint(checkpoint)
|
||||
|
||||
def load_from_checkpoint(self, checkpoint: Dict):
|
||||
|
||||
Reference in New Issue
Block a user