Pytorch not converge but keras did

I think eps isn’t the crux of the problem.
I try to reproduce my code with pytorch which is writed by Keras before. But it didn’t converge without BatchNorm that never needed in Keras. If run the pytorch code five times, it can converge once.
I guesss the issue caused by some random factors. eg: initialization hink eps isn’t the crux of the problem.
I try to reproduce my code with pytorch which is writed by Keras before. But it didn’t converge without BatchNorm that never needed in Keras. If run the pytorch code five times, it can converge once.
I guesss the issue caused by some random factors. eg: initialization of weight…