Skip to content

Commit fc0a7e9

Browse files
committed
fix batching bug with LabelTensor
1 parent 6eed64a commit fc0a7e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pina/_src/condition/data_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def create_batch(items):
119119
if isinstance(sample, LabelTensor)
120120
else torch.stack
121121
)
122-
batch_data[k] = batch_fn(vals, dim=0)
122+
batch_data[k] = batch_fn(vals)
123123
else:
124124
batch_data[k] = sample
125125
return batch_data

0 commit comments

Comments
 (0)