skiprnn_pytorch icon indicating copy to clipboard operation
skiprnn_pytorch copied to clipboard

No Convergence seen for addition task

Open Abhi-Tiw1 opened this issue 8 years ago • 3 comments

Hi!

I am running a replication study between the tensor flow and pytorch implementation and for the addition task, no convergence is seen i.e. the number of validation samples don't go down at all or do that really slowly (remain always around 99% to 97% running with cuda overnight), compared to this the tensor flow code shows skipping sample behavior just after the first 300 iterations.

I could not spot any immediate difference between the two implementations (I am more used to pytorch).

Thanks Abhishek

Abhi-Tiw1 avatar Apr 25 '18 17:04 Abhi-Tiw1

I further investigated it and it seems the convergence is highly dependent on the random seed chosen for torch. Is there any specific that we should be using in this case?

Abhi-Tiw1 avatar Apr 25 '18 22:04 Abhi-Tiw1

Hi!

I finally managed to find the bug in this code and have a solution. Further, I have done the Imdb experiment as well and all the results are replicable. Is there any way I can add my changes to this repository?

Abhishek

Abhi-Tiw1 avatar May 09 '18 17:05 Abhi-Tiw1

Hi! Thanks a lot for your effort in finding this bug. I have merged the changes already. Sorry for the late reply.

gitabcworld avatar Sep 26 '18 07:09 gitabcworld