Skip to content

Commit

Permalink
Merge pull request #176 from openclimatefix/horizon_graph_gpu_fix
Browse files Browse the repository at this point in the history
Fix the horizon graph training on GPU
  • Loading branch information
dfulu authored Apr 15, 2024
2 parents 9c34c36 + 1b5283f commit d436b64
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 d436b64

Please sign in to comment.