class_docstr: An iterator that passes events through read-time compat layers.
  
  Specifically, this includes `data_compat` and `dataclass_compat`.
class_docstr_tok: ["An","iterator","that","passes","events","through","read-time","compat","layers",".","Specifically",",","this","includes","`","data_compat","`","and","`","dataclass_compat","`","."]
code: def __init__(self, *args, **kwargs):
      super().__init__(*args, **kwargs)
      # Track initial metadata for each tag, for `dataclass_compat`.
      # This is meant to be tracked per run, not per event file, so
      # there is a potential failure case when the second event file
      # in a single run has no summary metadata. This only occurs when
      # all of the following hold: (a) the events were written with
      # the TensorFlow 1.x (not 2.x) writer, (b) the summaries were
      # created by `tensorboard.summary.v1` ops and so do not undergo
      # `data_compat` transformation, and (c) the file writer was
      # reopened by calling `.reopen()` on it, which creates a new
      # file but does not clear the tag cache. This is considered
      # sufficiently improbable that we don't take extra mitigations.
      self._initial_metadata = {}
  
imports: import contextlib
  from tensorboard import data_compat
  from tensorboard import dataclass_compat
  from tensorboard.compat import tf
  from tensorboard.compat.proto import event_pb2
  from tensorboard.util import platform_util
  from tensorboard.util import tb_logging
label_desc: Use image node_id 1 to create a new EventFileLoader object from inherited base classes: LegacyEventFileLoader with example: obj = EventFileLoader()