From e905d0ac3e49e3f48418be7a98a83e15b22f97ee Mon Sep 17 00:00:00 2001 From: Stephan Lee Date: Tue, 28 Aug 2018 16:28:16 -0700 Subject: [PATCH] Fixed scalar card header description bug As part of refactor, the categorization now returns series instead of tag and runs. This broke `_tagMetadata` not to be invoked by Polymer. --- .../scalar/tf_scalar_dashboard/tf-scalar-dashboard.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tensorboard/plugins/scalar/tf_scalar_dashboard/tf-scalar-dashboard.html b/tensorboard/plugins/scalar/tf_scalar_dashboard/tf-scalar-dashboard.html index ffcabf9c945..659ac31a476 100644 --- a/tensorboard/plugins/scalar/tf_scalar_dashboard/tf-scalar-dashboard.html +++ b/tensorboard/plugins/scalar/tf_scalar_dashboard/tf-scalar-dashboard.html @@ -148,7 +148,7 @@

No scalar data was found.

data-to-load="[[item.series]]" multi-experiments="[[_getMultiExperiments(dataSelection)]]" tag="[[item.tag]]" - tag-metadata="[[_tagMetadata(_runToTagInfo, item.runs, item.tag)]]" + tag-metadata="[[_tagMetadata(category, _runToTagInfo, item)]]" active="[[page.active]]" > @@ -349,9 +349,10 @@

No scalar data was found.

this.updateArrayProp('_categories', categories, (c) => c.name); }, - _tagMetadata(runToTagsInfo, runs, tag) { + _tagMetadata(category, runToTagsInfo, item) { + const tag = item.tag; const runToTagInfo = {}; - runs.forEach(run => { + item.series.forEach(({run}) => { runToTagInfo[run] = runToTagsInfo[run][tag]; }); // All new-style scalar tags include the `/scalar_summary`