tensorboard icon indicating copy to clipboard operation
tensorboard copied to clipboard

Document events file format

Open jart opened this issue 9 years ago • 5 comments

https://github.com/tensorflow/tensorflow/issues/4181

@malmaud says:

Hello, In the documentation for Tensorboard, I can't find a description for the format of the events file beyond that it contains Event protobufs. Is it recordio? Are there any tools for writing event files for 3rd-party Tensorflow clients that aren't using the Python API?

jart avatar Jun 16 '17 20:06 jart

I'm going to be doing a lot of work on event ingestion in the near future, refactoring the backend, so I can probably write excellent documentation for what's going on with events during that time.

For example, plugins are most likely going to have access to raw event streams in real time. We want them to know what they can do with these protos.

jart avatar Jun 16 '17 20:06 jart

Is there any progress or update on this? Having access to events in real time would be extremely helpful for us.

elmarhaussmann avatar Aug 02 '17 06:08 elmarhaussmann

Might I ask what you're working on? How real time do you need it to be?

As you know, TensorBoard currently polls the event log files, which can be written by multiple hosts in a distributed training. We want to improve our latency. The thing that would help us most right now is to collect requirements from the community.

@malmaud The format of the event logs file is it's a "records file" where each record is a binary encoded tf.Event protocol buffer, which contains tf.summary.Summary protos. You can Google how to serialize protobufs in any language. The record file format is described by record_writer.cc and @zihaolucky wrote a really excellent pure Python implementation of the same thing. In essence:

  // Format of a single record:
  //  uint64    length
  //  uint32    masked crc of length
  //  byte      data[length]
  //  uint32    masked crc of data

jart avatar Aug 03 '17 01:08 jart

Long delay, but thanks!

malmaud avatar Feb 25 '19 19:02 malmaud

jart's comment above appears to have addressed the original request:

https://github.com/tensorflow/tensorboard/issues/72#issuecomment-319839210

manivaradarajan avatar Dec 19 '19 00:12 manivaradarajan