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 2
local reshaped_gates = nn.Reshape(4,params.rnn_size)(gates)
local sliced_gates = nn.SplitTable(2)(reshaped_gates)
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!