Wednesday, August 14, 2019

Show a range of data for the histograms/distributions in TensorBoard

Sometimes we want to look at the detail of histograms/distributions for a particular range of steps. However, TensorBoard does not provide zoom-in function for histograms/distributions. In order to do so, you have to change the TensorBoard code. The relevant python code is PYTHON_DIR/site-packages/tensorboard/plugins/histogram/histograms_plugin.py. In funciton histotrams_impl(), you can filter out the steps constraining e.step you needed before the return. In order to show every steps, you also need to set the flag "--samples_per_plugin hisgograms=0" when starting tensorboard.