Browse Source

!1276 Modify the prompt message that step trace does not support heterogeneous training

From: @feng_xue_feng
Reviewed-by: @ouwenchang,@yelihua
Signed-off-by: @yelihua
pull/1276/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
a0a68d6daf
4 changed files with 12 additions and 4 deletions
  1. +2
    -1
      mindinsight/ui/src/locales/en-us.json
  2. +2
    -1
      mindinsight/ui/src/locales/zh-cn.json
  3. +4
    -1
      mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue
  4. +4
    -1
      mindinsight/ui/src/views/profiling/profiling-dashboard.vue

+ 2
- 1
mindinsight/ui/src/locales/en-us.json View File

@@ -510,7 +510,8 @@
"lifeCycle": "Lifecycle",
"fpStart": "Forward",
"bpEnd": "Backward"
}
},
"isHeterogeneous": "Heterogeneous training scenarios are not supported temporarily."
},
"profilingGPU": {
"minddata_get_next_queue": {


+ 2
- 1
mindinsight/ui/src/locales/zh-cn.json View File

@@ -509,7 +509,8 @@
"lifeCycle": "生命周期",
"fpStart": "前向",
"bpEnd": "后向"
}
},
"isHeterogeneous":"暂不支持异构训练场景"
},
"profilingGPU": {
"minddata_get_next_queue": {


+ 4
- 1
mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue View File

@@ -106,7 +106,7 @@ limitations under the License.
alt="" />
</div>
<p v-show="!svg.initOver">{{$t("public.dataLoading")}}</p>
<p v-show="svg.initOver">{{$t("public.noData")}}</p>
<p v-show="svg.initOver">{{isHeterogeneous?$t("profiling.isHeterogeneous"):$t("public.noData")}}</p>
</div>
</div>
</div>
@@ -475,6 +475,7 @@ export default {
noData: true,
initOver: false, // Is initialization complete
},
isHeterogeneous: false,
};
},
mounted() {
@@ -823,6 +824,7 @@ export default {
RequestService.queryTrainingTrace(params).then(
(res) => {
this.svg.initOver = true;
this.isHeterogeneous = res.data.is_heterogeneous;
if (res && res.data && res.data.training_trace_graph && res.data.training_trace_graph.length) {
this.svg.noData = false;
this.removeTrace();
@@ -866,6 +868,7 @@ export default {
this.totalSteps = '--';
this.totalTime = '--';
this.tailPercent = '--';
this.isHeterogeneous = false;
},
);
},


+ 4
- 1
mindinsight/ui/src/views/profiling/profiling-dashboard.vue View File

@@ -106,7 +106,7 @@ limitations under the License.
alt="" />
</div>
<p v-show="!svg.initOver">{{$t("public.dataLoading")}}</p>
<p v-show="svg.initOver">{{$t("public.noData")}}</p>
<p v-show="svg.initOver">{{isHeterogeneous?$t("profiling.isHeterogeneous"):$t("public.noData")}}</p>
</div>
</div>
</div>
@@ -475,6 +475,7 @@ export default {
},
initOver: false, // Is initialization complete
},
isHeterogeneous: false,
};
},
mounted() {
@@ -696,6 +697,7 @@ export default {
RequestService.queryTrainingTrace(params).then(
(res) => {
this.svg.initOver = true;
this.isHeterogeneous = res.data.is_heterogeneous;
if (
res &&
res.data &&
@@ -743,6 +745,7 @@ export default {
this.totalSteps = '--';
this.totalTime = '--';
this.tailPercent = '--';
this.isHeterogeneous = false;
},
);
},


Loading…
Cancel
Save