Document events file format
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?
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.
Is there any progress or update on this? Having access to events in real time would be extremely helpful for us.
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
Long delay, but thanks!
jart's comment above appears to have addressed the original request:
https://github.com/tensorflow/tensorboard/issues/72#issuecomment-319839210