Skip to content

Commit c770732

Browse files
authored
Enable Time Series dashboard when only image events are available. (#5852)
The Time Series dashboard was not appearing for TensorBoards with only image events. We suspect this was just an oversight when Images were added to the Time Series dashboard. There is a function in the Metrics (aka "Time Series") plugin, data_plugin_names() which lists all data types for which the plugin should be enabled. It currently lists scalars and histograms but does not list images. This change just adds images to that list.
1 parent 402ee0f commit c770732

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tensorboard/plugins/metrics/metrics_plugin.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,11 @@ def get_plugin_apps(self):
292292
}
293293

294294
def data_plugin_names(self):
295-
return (scalar_metadata.PLUGIN_NAME, histogram_metadata.PLUGIN_NAME)
295+
return (
296+
scalar_metadata.PLUGIN_NAME,
297+
histogram_metadata.PLUGIN_NAME,
298+
image_metadata.PLUGIN_NAME,
299+
)
296300

297301
def is_active(self):
298302
return False # 'data_plugin_names' suffices.

0 commit comments

Comments
 (0)