According to these equations in wikimedia:
each gate has two weight matrices:W,U respectively,but according this:
from:http://colah.github.io/posts/2015-08-Understanding-LSTMs/
each gate has only one weight matrix:W,and in the example code:
z = np.row_stack((h_prev, x))
f = sigmoid(np.dot(W_f, z) + b_f)
i = sigmoid(np.dot(W_i, z) + b_i)
from:http://blog.varunajayasiri.com/numpy_lstm.html,apparently:
input and previous hidden status are stacked together to multiply same weight matrix
So,
Does each gate have one, or two matrices in LSTM? or I don't understand them correctly
if two,what does U matrix(wikimedia) mean?
