diff --git a/mindinsight/ui/src/locales/en-us.json b/mindinsight/ui/src/locales/en-us.json index 12476a72..f570858f 100644 --- a/mindinsight/ui/src/locales/en-us.json +++ b/mindinsight/ui/src/locales/en-us.json @@ -510,7 +510,8 @@ "lifeCycle": "Lifecycle", "fpStart": "Forward", "bpEnd": "Backward" - } + }, + "isHeterogeneous": "Heterogeneous training scenarios are not supported temporarily." }, "profilingGPU": { "minddata_get_next_queue": { diff --git a/mindinsight/ui/src/locales/zh-cn.json b/mindinsight/ui/src/locales/zh-cn.json index 4cee219d..3949c452 100644 --- a/mindinsight/ui/src/locales/zh-cn.json +++ b/mindinsight/ui/src/locales/zh-cn.json @@ -509,7 +509,8 @@ "lifeCycle": "生命周期", "fpStart": "前向", "bpEnd": "后向" - } + }, + "isHeterogeneous":"暂不支持异构训练场景" }, "profilingGPU": { "minddata_get_next_queue": { diff --git a/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue b/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue index b07ecab5..d5cc275b 100644 --- a/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue +++ b/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue @@ -106,7 +106,7 @@ limitations under the License. alt="" />
{{$t("public.dataLoading")}}
-{{$t("public.noData")}}
+{{isHeterogeneous?$t("profiling.isHeterogeneous"):$t("public.noData")}}
@@ -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; }, ); }, diff --git a/mindinsight/ui/src/views/profiling/profiling-dashboard.vue b/mindinsight/ui/src/views/profiling/profiling-dashboard.vue index 8603180e..d1449ea8 100644 --- a/mindinsight/ui/src/views/profiling/profiling-dashboard.vue +++ b/mindinsight/ui/src/views/profiling/profiling-dashboard.vue @@ -106,7 +106,7 @@ limitations under the License. alt="" />{{$t("public.dataLoading")}}
-{{$t("public.noData")}}
+{{isHeterogeneous?$t("profiling.isHeterogeneous"):$t("public.noData")}}
@@ -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; }, ); },