Browse Source

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

tags/v1.2.0
fengxuefeng 4 years ago
parent
commit
d4723c056c
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", "lifeCycle": "Lifecycle",
"fpStart": "Forward", "fpStart": "Forward",
"bpEnd": "Backward" "bpEnd": "Backward"
}
},
"isHeterogeneous": "Heterogeneous training scenarios are not supported temporarily."
}, },
"profilingGPU": { "profilingGPU": {
"minddata_get_next_queue": { "minddata_get_next_queue": {


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

@@ -509,7 +509,8 @@
"lifeCycle": "生命周期", "lifeCycle": "生命周期",
"fpStart": "前向", "fpStart": "前向",
"bpEnd": "后向" "bpEnd": "后向"
}
},
"isHeterogeneous":"暂不支持异构训练场景"
}, },
"profilingGPU": { "profilingGPU": {
"minddata_get_next_queue": { "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="" /> alt="" />
</div> </div>
<p v-show="!svg.initOver">{{$t("public.dataLoading")}}</p> <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> </div>
</div> </div>
@@ -475,6 +475,7 @@ export default {
noData: true, noData: true,
initOver: false, // Is initialization complete initOver: false, // Is initialization complete
}, },
isHeterogeneous: false,
}; };
}, },
mounted() { mounted() {
@@ -823,6 +824,7 @@ export default {
RequestService.queryTrainingTrace(params).then( RequestService.queryTrainingTrace(params).then(
(res) => { (res) => {
this.svg.initOver = true; 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) { if (res && res.data && res.data.training_trace_graph && res.data.training_trace_graph.length) {
this.svg.noData = false; this.svg.noData = false;
this.removeTrace(); this.removeTrace();
@@ -866,6 +868,7 @@ export default {
this.totalSteps = '--'; this.totalSteps = '--';
this.totalTime = '--'; this.totalTime = '--';
this.tailPercent = '--'; 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="" /> alt="" />
</div> </div>
<p v-show="!svg.initOver">{{$t("public.dataLoading")}}</p> <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> </div>
</div> </div>
@@ -475,6 +475,7 @@ export default {
}, },
initOver: false, // Is initialization complete initOver: false, // Is initialization complete
}, },
isHeterogeneous: false,
}; };
}, },
mounted() { mounted() {
@@ -696,6 +697,7 @@ export default {
RequestService.queryTrainingTrace(params).then( RequestService.queryTrainingTrace(params).then(
(res) => { (res) => {
this.svg.initOver = true; this.svg.initOver = true;
this.isHeterogeneous = res.data.is_heterogeneous;
if ( if (
res && res &&
res.data && res.data &&
@@ -743,6 +745,7 @@ export default {
this.totalSteps = '--'; this.totalSteps = '--';
this.totalTime = '--'; this.totalTime = '--';
this.tailPercent = '--'; this.tailPercent = '--';
this.isHeterogeneous = false;
}, },
); );
}, },


Loading…
Cancel
Save