Resets the optimizer state (moment estimates and step counter). Useful when starting training from scratch with the same optimizer instance.