Extra Columns

This page describes the available options for the extra_columns argument.

All Events

Please refer to test_scalar.py or test_tensor.py.

dir_name

Please refer to the Load Log Directory page.

file_name

Please refer to the python tests above.

wall_time

The wall_time (i.e. the time a clock on the wall would show) when the events are logged (e.g., when calling add_scalar).

The timestamp is not human-readable. Therefore, you might want to convert the timestamp to a datetime compliant object, as follows:

from tbparse import SummaryReader
log_dir = "<PATH_TO_EVENT_FILE_OR_DIRECTORY>"
reader = SummaryReader(logdir, extra_columns={'wall_time'})
df = reader.scalars
df["wall_clock"] = pd.to_datetime(df.wall_time, unit="s")

Histogram Events

min, max, num, sum, sum_squares

Please refer to test_histogram.py.

Image Events

width, height

Please refer to test_image.py.

Audio Events

content_type, length_frames, sample_rate

Please refer to test_audio.py.