code: def __init__(self, init_scale, max_scale: float, growth_interval=100):
      GradScaler.__init__(
          self, init_scale=init_scale, growth_interval=growth_interval
      )
      self.max_scale = max_scale
  
file_path: insightface/recognition/vpl/utils/utils_amp.py
imports: from typing import Dict, List
  import torch
  from torch._six import container_abcs
  from torch.cuda.amp import GradScaler
label_desc: Use image node_id 1 to create a new MaxClipGradScaler object from inherited base classes: GradScaler with example: obj = MaxClipGradScaler(init_scale, max_scale, growth_interval)