i made sure my code is exactly the same as keras code,
THE DIFFERENCE NOW IS that the model now in keras just give better results after the same number of epochs,
ex:
after 15 epochs the accuracy is:
keras code gave 27.5%
pytorch code gave 22.5%
it would be really great if you have any advice for me