Browse Source

Modify the layout ,timeline download file name and the link address of the profiler page

pull/1316/head
fengxuefeng 4 years ago
parent
commit
666d60d6f8
4 changed files with 16 additions and 8 deletions
  1. +3
    -3
      mindinsight/ui/src/locales/en-us.json
  2. +1
    -1
      mindinsight/ui/src/locales/zh-cn.json
  3. +6
    -2
      mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue
  4. +6
    -2
      mindinsight/ui/src/views/profiling/profiling-dashboard.vue

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

@@ -314,7 +314,7 @@
"desc": "How Do I Use Profiler for Profiling?", "desc": "How Do I Use Profiler for Profiling?",
"anchor": ["desc"], "anchor": ["desc"],
"url": [ "url": [
"https://www.mindspore.cn/tutorial/training/en/master/advanced_use/performance_profiling.html"
"https://www.mindspore.cn/tutorial/training/en/master/advanced_use/performance_profiling_ascend.html"
], ],
"gpuUrl": [ "gpuUrl": [
"https://www.mindspore.cn/tutorial/training/en/master/advanced_use/performance_profiling_gpu.html" "https://www.mindspore.cn/tutorial/training/en/master/advanced_use/performance_profiling_gpu.html"
@@ -679,8 +679,7 @@
"abs_mean_update_ratio_lt": "Ratio of mean update <", "abs_mean_update_ratio_lt": "Ratio of mean update <",
"param": "Threshold", "param": "Threshold",
"max_min_lt": "MAX-MIN <", "max_min_lt": "MAX-MIN <",
"max_min_gt": "MAX-MIN >",
"outdateTip": "When a watchpoint list or the current step is modified, the result may be outdated. Check again or perform subsequent step training. "
"max_min_gt": "MAX-MIN >"
}, },
"tensorTuningAdvice": { "tensorTuningAdvice": {
"operator_real_data_validation": [ "operator_real_data_validation": [
@@ -818,6 +817,7 @@
"recommendDetail": "The recommended watchpoints check zero tensors, gradient disappearances, and update weight above threshold.", "recommendDetail": "The recommended watchpoints check zero tensors, gradient disappearances, and update weight above threshold.",
"use": "Yes", "use": "Yes",
"notUse": "No", "notUse": "No",
"outdateTip": "When a watchpoint list or the current step is modified, the result may be outdated. Check again or perform subsequent step training. ",
"versionConflictTip": "MindSpore and MindInsight versions do not match. MindSpore version: {msv}; MindInsight version: {miv}", "versionConflictTip": "MindSpore and MindInsight versions do not match. MindSpore version: {msv}; MindInsight version: {miv}",
"checkTips": { "checkTips": {
"nan": "A tensor contains NaN, ", "nan": "A tensor contains NaN, ",


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

@@ -313,7 +313,7 @@
"desc": "如何使用Profiler进行性能分析", "desc": "如何使用Profiler进行性能分析",
"anchor": ["desc"], "anchor": ["desc"],
"url": [ "url": [
"https://www.mindspore.cn/tutorial/training/zh-CN/master/advanced_use/performance_profiling.html"
"https://www.mindspore.cn/tutorial/training/zh-CN/master/advanced_use/performance_profiling_ascend.html"
], ],
"gpuUrl": [ "gpuUrl": [
"https://www.mindspore.cn/tutorial/training/zh-CN/master/advanced_use/performance_profiling_gpu.html" "https://www.mindspore.cn/tutorial/training/zh-CN/master/advanced_use/performance_profiling_gpu.html"


+ 6
- 2
mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue View File

@@ -826,7 +826,10 @@ export default {
const second = dealNumber(date.getSeconds()); const second = dealNumber(date.getSeconds());
const millisecond = date.getMilliseconds(); const millisecond = date.getMilliseconds();
const timestamp = `${year}${mouth}${day}${hour}${minute}${second}${millisecond}`; const timestamp = `${year}${mouth}${day}${hour}${minute}${second}${millisecond}`;
return `timeline_${this.trainingJobId}_${this.currentCard}_${timestamp}.json`;
return (
`timeline_${this.trainingJobId}_${this.currentCard}` +
`_ScopeNumber=${this.timelineInfo.scopeNameNum}_${timestamp}.json`
);
}, },
/** /**
* Keep the number with n decimal places. * Keep the number with n decimal places.
@@ -1255,6 +1258,7 @@ export default {
float: left; float: left;
font-weight: bold; font-weight: bold;
font-size: 18px; font-size: 18px;
max-width: 300px;
} }
.pro-router-wrap > div .title-wrap .tip-icon { .pro-router-wrap > div .title-wrap .tip-icon {
float: right; float: right;
@@ -1508,7 +1512,7 @@ export default {
width: 100px; width: 100px;
} }
.pro-router-wrap .op-time-content { .pro-router-wrap .op-time-content {
height: calc(100% - 54px);
height: calc(100% - 72px);
overflow: auto; overflow: auto;
} }
.pro-router-wrap .pie-chart { .pro-router-wrap .pie-chart {


+ 6
- 2
mindinsight/ui/src/views/profiling/profiling-dashboard.vue View File

@@ -1202,7 +1202,10 @@ export default {
const second = dealNumber(date.getSeconds()); const second = dealNumber(date.getSeconds());
const millisecond = date.getMilliseconds(); const millisecond = date.getMilliseconds();
const timestamp = `${year}${mouth}${day}${hour}${minute}${second}${millisecond}`; const timestamp = `${year}${mouth}${day}${hour}${minute}${second}${millisecond}`;
return `timeline_${this.trainingJobId}_${this.currentCard}_${timestamp}.json`;
return (
`timeline_${this.trainingJobId}_${this.currentCard}` +
`_ScopeNumber=${this.timelineInfo.scopeNameNum}_${timestamp}.json`
);
}, },
/** /**
* Keep the number with n decimal places. * Keep the number with n decimal places.
@@ -1258,6 +1261,7 @@ export default {
float: left; float: left;
font-weight: bold; font-weight: bold;
font-size: 18px; font-size: 18px;
max-width: 300px;
} }
.pro-router-wrap > div .title-wrap .tip-icon { .pro-router-wrap > div .title-wrap .tip-icon {
float: right; float: right;
@@ -1512,7 +1516,7 @@ export default {
width: 100px; width: 100px;
} }
.pro-router-wrap .op-time-content { .pro-router-wrap .op-time-content {
height: calc(100% - 54px);
height: calc(100% - 72px);
overflow: auto; overflow: auto;
} }
.pro-router-wrap .pie-chart { .pro-router-wrap .pie-chart {


Loading…
Cancel
Save