From: @feng_xue_feng Reviewed-by: @ouwenchang,@yelihua Signed-off-by: @yelihuapull/1276/MERGE
| @@ -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": { | ||||
| @@ -509,7 +509,8 @@ | |||||
| "lifeCycle": "生命周期", | "lifeCycle": "生命周期", | ||||
| "fpStart": "前向", | "fpStart": "前向", | ||||
| "bpEnd": "后向" | "bpEnd": "后向" | ||||
| } | |||||
| }, | |||||
| "isHeterogeneous":"暂不支持异构训练场景" | |||||
| }, | }, | ||||
| "profilingGPU": { | "profilingGPU": { | ||||
| "minddata_get_next_queue": { | "minddata_get_next_queue": { | ||||
| @@ -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; | |||||
| }, | }, | ||||
| ); | ); | ||||
| }, | }, | ||||
| @@ -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; | |||||
| }, | }, | ||||
| ); | ); | ||||
| }, | }, | ||||