mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
Align BasePyTorchRegressor tensors to cpu as in BasePyTorchClassifier
This commit is contained in:
@@ -45,6 +45,5 @@ class BasePyTorchRegressor(BasePyTorchModel):
|
||||
device=self.device
|
||||
)
|
||||
y = self.model.model(x)
|
||||
y = y.cpu()
|
||||
pred_df = DataFrame(y.detach().numpy(), columns=[dk.label_list[0]])
|
||||
pred_df = DataFrame(y.detach().tolist(), columns=[dk.label_list[0]])
|
||||
return (pred_df, dk.do_predict)
|
||||
|
||||
Reference in New Issue
Block a user