class_docstr: PL Lightning Module for the STFPM algorithm.
  
  Args:
      hparams (DictConfig | ListConfig): Model params
class_docstr_tok: ["PL","Lightning","Module","for","the","STFPM","algorithm",".","Args",":","hparams","(","DictConfig","|","ListConfig",")",":","Model","params"]
docstr: Configures optimizers.
  
  Note:
      This method is used for the existing CLI.
      When PL CLI is introduced, configure optimizers method will be
          deprecated, and optimizers will be configured from either
          config.yaml file or from CLI.
  
  Returns:
      Optimizer: SGD optimizer
docstr_tok: ["Configures","optimizers",".","Note",":","This","method","is","used","for","the","existing","CLI",".","When","PL","CLI","is","introduced",",","configure","optimizers","method","will","be","deprecated",",","and","optimizers","will","be","configured","from","either","config.yaml","file","or","from","CLI",".","Returns",":","Optimizer",":","SGD","optimizer"]
code: def configure_optimizers(self) -> torch.optim.Optimizer:
      """Configures optimizers.
  
      Note:
          This method is used for the existing CLI.
          When PL CLI is introduced, configure optimizers method will be
              deprecated, and optimizers will be configured from either
              config.yaml file or from CLI.
  
      Returns:
          Optimizer: SGD optimizer
      """
      return optim.SGD(
          params=self.model.student_model.parameters(),
          lr=self.hparams.model.lr,
          momentum=self.hparams.model.momentum,
          weight_decay=self.hparams.model.weight_decay,
      )
  
file_path: anomalib/src/anomalib/models/stfpm/lightning_model.py
imports: from __future__ import annotations
  import torch
  from omegaconf import DictConfig, ListConfig
  from pytorch_lightning.callbacks import EarlyStopping
  from pytorch_lightning.utilities.types import STEP_OUTPUT
  from torch import Tensor, optim
  from anomalib.models.components import AnomalyModule
  from anomalib.models.stfpm.loss import STFPMLoss
  from anomalib.models.stfpm.torch_model import STFPMModel
label_desc: Use image node_id 3 for calling the StfpmLightning obj's underlying member method code with example usage: obj.configure_optimizers() and returns: optim