You should check the optimizers doc in details as there might be differences! Momentum in particular IIRC