Skip to content

Commit

Permalink
Fix the input_pipeline_analyzer plugin for TensorFlow 1.8 (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckluk authored and nfelt committed Apr 24, 2018
1 parent e42849c commit 88e4677
Showing 1 changed file with 29 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
</style>
<div>
<div id="section_summary">
<div id="title_summary">
<p class="section-header"> Section 1: Summary of input-pipeline analysis</p>
</div>
<p id="summary">
<span>The overall performance is </span>
<span class="summary-conclusion">[[_summary_text]]</span>
<span>input-bounded because on average (over all steps) the device has spent </span>
<span><span class="summary-conclusion">[[_infeed_percent_average]]%</span> of time </span>
<span>(standard deviation = [[_infeed_percent_stddev]]) waiting for input data </span>
<span>[see Section 2 below for details].</span>
</p>
<p id="summary-host">
Recommendation for next step: <span class="host-conclusion">[[_host_conclusion]]</span>
</p>
<p><span id="summary_conclusion">[[_summary_conclusion]]</span></p>
<p><span id="recommendation_title">Recommendation for next step: </span><span id="summary_nextstep">[[_summary_nextstep]]</span></p>
</div>
<div id="section_device_side_analysis">
<div id="title_device_side_analysis">
Expand Down Expand Up @@ -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,
Expand All @@ -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);
},
Expand All @@ -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']);
Expand All @@ -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);
Expand Down

0 comments on commit 88e4677

Please sign in to comment.