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
Hi, I can not understand why in the following code, the reshaped_gates is split along dimension 2 rather than 1, since output of reshaped_gates is a 4 x rnn_size matrix.
-- Reshape to (batch_size, n_gates, hid_size)-- Then slize the n_gates dimension, i.e dimension 2localreshaped_gates=nn.Reshape(4,params.rnn_size)(gates)
localsliced_gates=nn.SplitTable(2)(reshaped_gates)
Could anybody explain it? Thx in advance!
The text was updated successfully, but these errors were encountered:
Hi, I can not understand why in the following code, the
reshaped_gates
is split along dimension 2 rather than 1, since output ofreshaped_gates
is a4 x rnn_size
matrix.Could anybody explain it? Thx in advance!
The text was updated successfully, but these errors were encountered: