oweller2
commited on
Commit
•
d4cfde8
1
Parent(s):
306d8ae
add breakpoint
Browse files- padding.py +1 -0
padding.py
CHANGED
@@ -73,6 +73,7 @@ def pad_input(
|
|
73 |
output[indices] = inputs
|
74 |
padded_inputs = output.view(batch, seqlen)
|
75 |
else:
|
|
|
76 |
_, *rest = inputs.shape
|
77 |
output = torch.zeros(batch * seqlen, *rest, dtype=inputs.dtype, device=inputs.device)
|
78 |
output[indices] = inputs
|
|
|
73 |
output[indices] = inputs
|
74 |
padded_inputs = output.view(batch, seqlen)
|
75 |
else:
|
76 |
+
breakpoint()
|
77 |
_, *rest = inputs.shape
|
78 |
output = torch.zeros(batch * seqlen, *rest, dtype=inputs.dtype, device=inputs.device)
|
79 |
output[indices] = inputs
|