Commit
·
21fcda0
1
Parent(s):
ecec220
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,7 +18,7 @@ def load_audio(batch):
|
|
| 18 |
|
| 19 |
ds = ds.map(load_audio)
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
# forward
|
| 24 |
logits = model(input_ids).logits
|
|
|
|
| 18 |
|
| 19 |
ds = ds.map(load_audio)
|
| 20 |
|
| 21 |
+
input_values = torch.nn.utils.rnn.pad_sequence([torch.tensor(x[0]) for x in ds["samples"][:10]], batch_first=True)
|
| 22 |
|
| 23 |
# forward
|
| 24 |
logits = model(input_ids).logits
|