Returns the trainer as configured by the estimator. Typically, this method is only called by functions in the estimator.
Any) -- Additional arguments that override the trainer arguments registered in the initializer of the estimator.
- Return type
A fully initialized PyTorch Lightning trainer.
This function should be preferred over initializing the trainer directly. It ensures that the returned trainer correctly deals with LightKit components that may be introduced in the future.