Skip to content

Commit 7721d8c

Browse files
committed
sfix for issue
1 parent 01a176c commit 7721d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chebai/preprocessing/collate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def process_label_rows(self, labels: Tuple) -> torch.Tensor:
130130
"""
131131
return pad_sequence(
132132
[
133-
torch.tensor([v if v is not None else False for v in row])
133+
torch.tensor([bool(v) if bool(v) is not None else False for v in row])
134134
for row in labels
135135
],
136136
batch_first=True,

0 commit comments

Comments
 (0)