class_docstr: Class that manages a static loss scale.  This class is intended to interact with
  :class:`FP16_Optimizer`, and should not be directly manipulated by the user.
  
  Use of :class:`LossScaler` is enabled via the ``static_loss_scale`` argument to
  :class:`FP16_Optimizer`'s constructor.
  
  Args:
      scale (float, optional, default=1.0):  The loss scale.
class_docstr_tok: ["Class","that","manages","a","static","loss","scale",".","This","class","is","intended","to","interact","with",":","class",":","`","FP16_Optimizer","`",",","and","should","not","be","directly","manipulated","by","the","user",".","Use","of",":","class",":","`","LossScaler","`","is","enabled","via","the","``","static_loss_scale","``","argument","to",":","class",":","`","FP16_Optimizer","`","'s","constructor",".","Args",":","scale","(","float",",","optional",",","default=1.0",")",":","The","loss","scale","."]
code: def _has_inf_or_nan(x):
      return False
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/deepspeed/runtime/fp16/loss_scaler.py
label_desc: Use image node_id 3 for calling the LossScaler obj's underlying member method code with example usage: obj._has_inf_or_nan(x) and returns: False