In order to train a 2DLSTM unit, backpropagation through time (BPTT) is performed over two dimensions (Graves, 2008(Graves, , 2012.
the gradient is passed backwards from the time step (J, I) to (1, 1), the origin.