class_docstr: Monitor for Infinity and NaN in tensor values.
class_docstr_tok: ["Monitor","for","Infinity","and","NaN","in","tensor","values","."]
docstr: Monitor method for GraphExecutionTrace data object.
docstr_tok: ["Monitor","method","for","GraphExecutionTrace","data","object","."]
code: def on_graph_execution_trace(
      self, graph_execution_trace_index, graph_execution_trace
  ):
      """Monitor method for GraphExecutionTrace data object."""
      if self._limit > 0 and len(self._alerts) >= self._limit:
          return
      if (
          graph_execution_trace.tensor_debug_mode
          == debug_event_pb2.TensorDebugMode.FULL_TENSOR
      ):
          tensor_value = self._debug_data_reader.graph_execution_trace_to_tensor_value(
              graph_execution_trace
          )
          self._check_full_tensor_value(
              tensor_value,
              graph_execution_trace.wall_time,
              graph_execution_trace.op_type,
              graph_execution_trace.output_slot,
              graph_execution_trace_index=graph_execution_trace_index,
          )
      elif graph_execution_trace.debug_tensor_value:
          self._check_debug_tensor_value(
              graph_execution_trace.tensor_debug_mode,
              graph_execution_trace.debug_tensor_value,
              graph_execution_trace.wall_time,
              graph_execution_trace.op_type,
              graph_execution_trace.output_slot,
              graph_execution_trace_index=graph_execution_trace_index,
          )
  
imports: import numpy
  from tensorflow.core.protobuf import debug_event_pb2
label_desc: Use image node_id 5 for calling the InfNanMonitor obj's underlying member method code with example usage: obj.on_graph_execution_trace(graph_execution_trace_index, graph_execution_trace) without return types