I think you can ignore the warning, as you are calling this method before the training to get to the same epoch value.
The warning should be considered, if you are seeing it inside your training loop.