class_docstr: Wrapper for the numerics-checking callback for thread locality.
class_docstr_tok: ["Wrapper","for","the","numerics-checking","callback","for","thread","locality","."]
code: def __init__(self, stack_height_limit, path_length_limit):
      self._stack_height_limit = stack_height_limit
      self._path_length_limit = path_length_limit
      # A dict mapping Placeholder tensors to their instrumenting debug tensors.
      # Used only under V1 graph mode, where we can't rely on auto control
      # dependency to execute the debug tensors and hence need to attach the debug
      # tensors as control dependencies of the ops that consume the Placeholder.
      self._placeholder_to_debug_tensor = (
          object_identity.ObjectIdentityDictionary()
      )
  
imports: import collections
  import threading
  import numpy
  from tensorflow.core.protobuf import debug_event_pb2
  from tensorflow.python.debug.lib import op_callbacks_common
  from tensorflow.python.debug.lib import source_utils
  from tensorflow.python.eager import monitoring
  from tensorflow.python.framework import op_callbacks
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_debug_ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import compat
  from tensorflow.python.util import object_identity
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 to create a new CheckNumericsCallback object from inherited base classes: object with example: obj = CheckNumericsCallback(stack_height_limit, path_length_limit)