Skip to content

Commit

Permalink
fix the horizon graph training on GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
dfulu committed Apr 15, 2024
1 parent 9c34c36 commit 1b5283f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvnet/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def validation_step(self, batch: dict, batch_idx):

# Store these to make horizon accuracy plot
self._horizon_maes.append(
{i: losses[f"MAE_horizon/step_{i:03}"] for i in range(self.forecast_len)}
{i: losses[f"MAE_horizon/step_{i:03}"].cpu().numpy() for i in range(self.forecast_len)}
)

logged_losses = {f"{k}/val": v for k, v in losses.items()}
Expand Down

0 comments on commit 1b5283f

Please sign in to comment.