Skip to content

Commit

Permalink
Fix key
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Feb 6, 2024
1 parent 809ebbf commit 30908f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvnet/models/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def flush(self) -> dict[BatchKey, list[torch.Tensor]]:
batch = {}
for k, v in self._batches.items():
print(k)
if k == f"{self.key_to_keep}_t0_idx":
if k == BatchKey[f"{self.key_to_keep}_t0_idx"]:
batch[k] = v[0]
else:
batch[k] = torch.cat(v, dim=0)
Expand Down

0 comments on commit 30908f1

Please sign in to comment.