question: Is it okay to feed optimizer to `configure_optimizers`
context: Hi all, is it okay to feed the optimizer that's been initialized outside this code to pl.LightningModule?
  def Model(pl.LightningModule):
      def __init__(optimizer):
          self.optimizer = optimizer
      def configure_optimizers(self) -> Any:                                                                                      
          optimizer = self.optimizer          # like this                                                                                    
          scheduler = {                                                                                                               
              'scheduler': LambdaLR(optimizer, self.lr_lambda),                                                                       
              'interval': 'step',                                                                                                     
              'frequency': 1,   
          }                                                                                                                                                                                                                   
      return [optimizer], [scheduler]
  
  Thanks!
answer: yes, I think you can, but not a good practice, we recommend.
  just curious, why are you feeding it like that?