Browse Source

Merge pull request '训练任务详情权限设置' (#1116) from fix-969 into V20211213

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/1116
Reviewed-by: lewis <747342561@qq.com>
tags/v1.21.12.1^2
lewis 4 years ago
parent
commit
605c53a7ee
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      routers/repo/modelarts.go

+ 4
- 1
routers/repo/modelarts.go View File

@@ -1230,7 +1230,7 @@ func TrainJobShow(ctx *context.Context) {
ctx.Data["canNewJob"] = canNewJob

//将运行参数转化为epoch_size = 3, device_target = Ascend的格式
for i, _ := range VersionListTasks {
for i, task := range VersionListTasks {

var parameters models.Parameters

@@ -1251,6 +1251,9 @@ func TrainJobShow(ctx *context.Context) {
} else {
VersionListTasks[i].Parameters = ""
}

VersionListTasks[i].CanDel = cloudbrain.CanDeleteJob(ctx, &task.Cloudbrain)
VersionListTasks[i].CanModify = cloudbrain.CanModifyJob(ctx, &task.Cloudbrain)
}

pager := context.NewPagination(VersionListCount, setting.UI.IssuePagingNum, page, 5)


Loading…
Cancel
Save