did you find your answer ? I think I have same issue
i think since pytorch gives us a very root access to defining, training and … phases (compared to keras which is only model.compile, model.fit and model.predict)
the problem should be in keras!
maybe keras is doing something in it’s backend