You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, pad2:forward(fvec) returns 25x32 instead of 25x32x9x1 all the time.
When I use nn.Padding only for fvec tensor it returns correct 25x32x9x1 which is bewildering.
How does this happen?
The text was updated successfully, but these errors were encountered:
I have a standard training loop in a sequential recurrent model. The model is trained with two input batches of data where:
x1 batch (
25 x 32
)x2 batch (
25 x 32 x 9 x 1
)The last batches in the epoch are smaller and are:
x1 last batch (
14 x 32
)x2 last batch (
14 x 32 x 9 x 1
)So, I use
nn.Padding
to add more dimensions for the last batches to make them always have the same sequence length like so:However,
pad2:forward(fvec)
returns25x32
instead of25x32x9x1
all the time.When I use
nn.Padding
only forfvec
tensor it returns correct25x32x9x1
which is bewildering.How does this happen?
The text was updated successfully, but these errors were encountered: