code: def has_overflow(self, params):
      #        return False
      for p in params:
          if p.grad is not None and DynamicLossScaler._has_inf_or_nan(
              p.grad.data
          ):
              return True
  
      return False
  
file_path: DALI/docs/examples/use_cases/video_superres/common/loss_scaler.py
imports: import torch
label_desc: Use image node_id 2 for calling the DynamicLossScaler obj's underlying member method code with example usage: obj.has_overflow(params) and returns: False, True