- A data dump file set generated by tfdbg2 can contain
multiple subsets when there are multiple hosts involved
in the instrumented TensorFlow job (e.g., TPUs and Parameter Servers).
Currently, there is no bit in those subset of files that
indicates they belong to the same instrumented TF job.
- This CL addresses this problem by adding a field to the
metadata proto used by those files (`tfdbg_run_id`)
- The DebugEventsWriter code is revised, so that this new
field is written to the metadata file of the file set on the writer's
construction.
- Also in this CL: remove the previous 1-arg `GetDebugEventsWriter(dump_root)`
that creates the writer object if it doesn't exist at the specified
dump_root. Replace it with `LookUpDebugEventsWriter(dump_root)` that only
looks up the writer object and returns a non-OK status if such an object
hasn't been created at `dump_root`. This makes the code less error prone by
keeping only the fully-explicit, 3-arg `GetDebugEventsWriter()`.
PiperOrigin-RevId: 316537044
Change-Id: Id5be0b771fbf37c0fc796f1514ed858a0e6d38f0