Skip to content

Commit

Permalink
Fix key
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Nov 27, 2023
1 parent c7565a0 commit c246be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvnet/data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def batch_to_tensor(batch):

def split_batches(batch):
"""Splits a single batch of data."""
n_samples = batch[BatchKey.sensor].shape[0]
n_samples = batch[BatchKey.gsp].shape[0]
keys = list(batch.keys())
examples = [{} for _ in range(n_samples)]
for i in range(n_samples):
Expand Down

0 comments on commit c246be0

Please sign in to comment.