class_docstr: ## L2 Weight decay
docstr: Return defaults for parameter groups
docstr_tok: ["Return","defaults","for","parameter","groups"]
code: def defaults(self):
      """
      Return defaults for parameter groups
      """
      return dict(weight_decay=self.weight_decay)
  
file_path: annotated_deep_learning_paper_implementations/labml_nn/optimizers/__init__.py
imports: from typing import Dict, Tuple, Any
  import torch
  from torch import nn
  from torch.optim.optimizer import Optimizer
label_desc: Use image node_id 2 for calling the WeightDecay obj's underlying member method code with example usage: obj.defaults() and returns: dict