Skip to content

Commit

Permalink
Avoid memory issues when calibrating
Browse files Browse the repository at this point in the history
  • Loading branch information
frostedoyster authored Aug 5, 2024
1 parent 7259ce1 commit 78cec83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metatrain/utils/llpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ def calibrate(self, valid_loader: DataLoader):
all_predictions[name] = []
all_targets[name] = []
all_uncertainties[uncertainty_name] = []
all_predictions[name].append(outputs[name].block().values)
all_predictions[name].append(outputs[name].block().values.detach())
all_targets[name].append(target.block().values)
all_uncertainties[uncertainty_name].append(
outputs[uncertainty_name].block().values
outputs[uncertainty_name].block().values.detach()
)

for name in all_predictions:
Expand Down

0 comments on commit 78cec83

Please sign in to comment.