From 72b3c15f1f15643def7126f5bfa0c2cb57f25796 Mon Sep 17 00:00:00 2001 From: Qiumin Xu Date: Mon, 10 Dec 2018 17:36:52 -0800 Subject: [PATCH 1/2] Add a breakdown of step time to overview page. --- .../plugins/profile/overview_page/overview-page.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tensorboard/plugins/profile/overview_page/overview-page.html b/tensorboard/plugins/profile/overview_page/overview-page.html index 64be9becd63..58156dcf2fd 100644 --- a/tensorboard/plugins/profile/overview_page/overview-page.html +++ b/tensorboard/plugins/profile/overview_page/overview-page.html @@ -105,6 +105,8 @@

Average step time (lower is better): [[_steptime_ms_average]] ms (standard deviation = [[_steptime_ms_stddev]] ms)

+

- Average infeed: [[_infeed_ms_average]] ms

+

- Average compute: [[_compute_ms_average]] ms

Host idle time (lower is better): [[_host_idle_time_percent]]

TPU idle time (lower is better): [[_device_idle_time_percent]]

Utilization of TPU Matrix Units (higher is better): [[_mxu_utilization_percent]]

@@ -206,6 +208,8 @@ _mxu_utilization_percent: { type: String }, _steptime_ms_average: { type: String }, _steptime_ms_stddev: { type: String }, + _infeed_ms_average: { type: String }, + _compute_ms_average: { type: String }, _top_ops_heading: { type: String }, _error_message: { type: String }, _host_count: { type: String }, @@ -271,6 +275,10 @@ inputAnalysisJson.p['steptime_ms_average']; this._steptime_ms_stddev = inputAnalysisJson.p['steptime_ms_standard_deviation']; + this._infeed_ms_average = + inputAnalysisJson.p['compute_ms_average']; + this._compute_ms_average = + inputAnalysisJson.p['infeed_ms_average']; }, /* Displays run time information */ _showRunEnvironment : function(runEnvironmentJson) { From 750069a2cad41fb543ed4c9aa3ae6badbabb4b07 Mon Sep 17 00:00:00 2001 From: Qiumin Xu Date: Wed, 12 Dec 2018 19:29:29 -0800 Subject: [PATCH 2/2] Use
    and
  • tags for the step time breakdown --- .../plugins/profile/overview_page/overview-page.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tensorboard/plugins/profile/overview_page/overview-page.html b/tensorboard/plugins/profile/overview_page/overview-page.html index 58156dcf2fd..9f21a8a2005 100644 --- a/tensorboard/plugins/profile/overview_page/overview-page.html +++ b/tensorboard/plugins/profile/overview_page/overview-page.html @@ -105,8 +105,10 @@

    Average step time (lower is better): [[_steptime_ms_average]] ms (standard deviation = [[_steptime_ms_stddev]] ms)

    -

    - Average infeed: [[_infeed_ms_average]] ms

    -

    - Average compute: [[_compute_ms_average]] ms

    +
      +
    • Average infeed: [[_infeed_ms_average]] ms
    • +
    • Average compute: [[_compute_ms_average]] ms
    • +

    Host idle time (lower is better): [[_host_idle_time_percent]]

    TPU idle time (lower is better): [[_device_idle_time_percent]]

    Utilization of TPU Matrix Units (higher is better): [[_mxu_utilization_percent]]

    @@ -208,8 +210,8 @@ _mxu_utilization_percent: { type: String }, _steptime_ms_average: { type: String }, _steptime_ms_stddev: { type: String }, - _infeed_ms_average: { type: String }, - _compute_ms_average: { type: String }, + _infeed_ms_average: { type: String, value: '' }, + _compute_ms_average: { type: String, value: '' }, _top_ops_heading: { type: String }, _error_message: { type: String }, _host_count: { type: String },