I am implementing the review net (link: https://github.com/kimiyoung/review_net/blob/master/image_caption_offline/reason_att_copy.lua 3 ). It is just an ordinary encoder-decoder framework plus review steps. The review step is similar to decoder step, but there is no input and the weights of LSTMs are not shared. In my implementation, it seems that the parameters of LSTMs in review steps are not updated when training. If the review steps are deleted, the code works fine and I can get the correct results.
Here is the code (https://gist.github.com/cswhjiang/cbc3d48cdd01efd5bcdf8ac92c0e66fa#file-review_net-py-L249 8). It seems that lines 249-259 are not correct. Could anyone give me some suggestions? Thanks.