class_docstr: Check variables in the graph for NaN and Inf.
  Raise an exception if such an error is found.
class_docstr_tok: ["Check","variables","in","the","graph","for","NaN","and","Inf",".","Raise","an","exception","if","such","an","error","is","found","."]
docstr: Args: same as in :class:`RunOp`.
docstr_tok: ["Args",":","same","as","in",":","class",":","`","RunOp","`","."]
code: def __init__(self, run_as_trigger=True, run_step=False):
      """
      Args: same as in :class:`RunOp`.
      """
      super().__init__(
          self._get_op, run_as_trigger=run_as_trigger, run_step=run_step
      )
  
imports: import numpy
  import os
  from ..compat import tfv1
  from ..tfutils.common import get_op_tensor_name
  from ..utils import logger
  from .base import Callback
label_desc: Use image node_id 1 to create a new CheckNumerics object from inherited base classes: RunOp with example: obj = CheckNumerics(run_as_trigger, run_step)