From b87c179a1af293c43fdc41b4f8ed2f47153b0151 Mon Sep 17 00:00:00 2001 From: ph Date: Sun, 28 Jun 2020 21:04:55 +0800 Subject: [PATCH] fix operator list sort issue --- mindinsight/ui/src/locales/zh-cn.json | 2 +- mindinsight/ui/src/views/train-manage/operator.vue | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mindinsight/ui/src/locales/zh-cn.json b/mindinsight/ui/src/locales/zh-cn.json index 1ff574c..4e9e3ce 100644 --- a/mindinsight/ui/src/locales/zh-cn.json +++ b/mindinsight/ui/src/locales/zh-cn.json @@ -363,7 +363,7 @@ "downloadTimeline": "下载", "timelineTips": { "title1": "时间线功能可以帮您对训练过程进行分析,它可以展示:", - "content11": "- 算子分配到哪个设备 (AICPU/AI Core) 执行;", + "content11": "- 算子分配到哪个设备 (AI CPU/AI Core) 执行;", "content12": "- MindSpore对该网络的流切分策略;", "content13": "- 算子在Device上的执行序列和执行时长。", "title2": "如何查看时间线:", diff --git a/mindinsight/ui/src/views/train-manage/operator.vue b/mindinsight/ui/src/views/train-manage/operator.vue index c48a3de..5b04a8e 100644 --- a/mindinsight/ui/src/views/train-manage/operator.vue +++ b/mindinsight/ui/src/views/train-manage/operator.vue @@ -497,6 +497,7 @@ export default { profile: this.profile_dir, train_id: this.train_id, }; + row.op_sort_condition.name = row.op_sort_condition.name.split(' ')[0]; params.body = { op_type: 'aicore_detail', device_id: this.currentCard, @@ -543,6 +544,7 @@ export default { profile: this.profile_dir, train_id: this.train_id, }; + this.opCpuList.op_sort_condition.name = this.opCpuList.op_sort_condition.name.split(' ')[0]; params.body = { op_type: 'aicpu', device_id: this.currentCard, -- GitLab