diff --git a/tensorboard/plugins/profile/input_pipeline_analyzer/input-pipeline-analyzer.html b/tensorboard/plugins/profile/input_pipeline_analyzer/input-pipeline-analyzer.html index a55d57408a..448279f04f 100644 --- a/tensorboard/plugins/profile/input_pipeline_analyzer/input-pipeline-analyzer.html +++ b/tensorboard/plugins/profile/input_pipeline_analyzer/input-pipeline-analyzer.html @@ -39,16 +39,6 @@ #summary-host { font-weight: bold; } - .summary-conclusion { - font-weight: bold; - font-style: italic; - color: var(--summary-color, black); - } - .host-conclusion { - font-weight: bold; - font-style: italic; - color: green; - } .highlighted-text { text-decoration: underline; font-weight: bold; @@ -90,23 +80,29 @@ color: #ff33cc; text-decoration: underline; } + #summary_conclusion{ + font-weight:bolder; + font-style:italic; + color: var(--summary-color, green); + } + #summary_nextstep{ + font-weight:bolder; + font-style:italic; + color:green; + } + #recommendation_title{ + font-weight:bolder; + font-style:normal; + color:black; + }

Section 1: Summary of input-pipeline analysis

-

- The overall performance is - [[_summary_text]] - input-bounded because on average (over all steps) the device has spent - [[_infeed_percent_average]]% of time - (standard deviation = [[_infeed_percent_stddev]]) waiting for input data - [see Section 2 below for details]. -

-

- Recommendation for next step: [[_host_conclusion]] -

+

[[_summary_conclusion]]

+

Recommendation for next step: [[_summary_nextstep]]

@@ -236,7 +232,8 @@ computed: '_getToggleButtonText(_show_host_side_table)' }, }, - _summary_text: String, + _summary_conclusion: String, + _summary_nextstep: String, _infeed_percent_average: String, _infeed_percent_stddev: String, _infeed_percent_minimum: String, @@ -245,7 +242,6 @@ _steptime_ms_stddev: String, _steptime_ms_minimum: String, _steptime_ms_maximum: String, - _host_conclusion: String, onClick: function(e) { this.set('_show_host_side_table', !this._show_host_side_table); }, @@ -269,9 +265,11 @@ /* Update view according to new data */ _updateView: function() { var deviceJson = this._data[0]; - var hostJson = this._data[1]; - var recommendationJson = this._data[2]; - this.set('_summary_text', deviceJson.p['summary_text']); + var hostJson = this._data[2]; + var recommendationJson = this._data[3]; + var conclusion = deviceJson.p['summary_conclusion']; + this.set('_summary_conclusion', conclusion); + this.set('_summary_nextstep', deviceJson.p['summary_nextstep']); this.set('_infeed_percent_average', deviceJson.p['infeed_percent_average']); this.set('_infeed_percent_stddev', deviceJson.p['infeed_percent_standard_deviation']); this.set('_infeed_percent_minimum', deviceJson.p['infeed_percent_minimum']); @@ -280,8 +278,11 @@ this.set('_steptime_ms_stddev', deviceJson.p['steptime_ms_standard_deviation']); this.set('_steptime_ms_minimum', deviceJson.p['steptime_ms_minimum']); this.set('_steptime_ms_maximum', deviceJson.p['steptime_ms_maximum']); - this.set('_host_conclusion', recommendationJson.p['overall']); - this.customStyle['--summary-color'] = deviceJson.p['summary_color']; + if (conclusion.includes('HIGHLY')) { + this.customStyle['--summary-color'] = 'red'; + } else if (conclusion.includes('MODERATE')) { + this.customStyle['--summary-color'] = 'orange'; + } this.updateStyles(); this._showDeviceStepChart(deviceJson); this._showDeviceInfeedChart(deviceJson);