class_docstr: Monitor for Infinity and NaN in tensor values.
class_docstr_tok: ["Monitor","for","Infinity","and","NaN","in","tensor","values","."]
code: def __init__(self, debug_events_reader, limit=0):
      super(InfNanMonitor, self).__init__(debug_events_reader)
      self._limit = (
          limit  # Track only the first _ alert events, for efficiency.
      )
      self._alerts = []
  
imports: import numpy
  from tensorflow.core.protobuf import debug_event_pb2
label_desc: Use image node_id 1 to create a new InfNanMonitor object from inherited base classes: BaseMonitor with example: obj = InfNanMonitor(debug_events_reader, limit)