Browse Source

Merge branch 'fix-1218' of https://git.openi.org.cn/OpenI/aiforge into fix-1218

tags/v1.21.12.2^2
zhoupzh 3 years ago
parent
commit
6d6f5f47e5
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      routers/repo/modelarts.go

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

@@ -49,12 +49,9 @@ func DebugJobIndex(ctx *context.Context) {
page = 1 page = 1
} }
debugType := modelarts.DebugType debugType := modelarts.DebugType
jobType := string(models.JobTypeDebug)
if debugListType == models.GPUResource { if debugListType == models.GPUResource {
debugType = models.TypeCloudBrainOne debugType = models.TypeCloudBrainOne
jobType = ""
}
if debugListType == models.NPUResource {
} else if debugListType == models.NPUResource {
debugType = models.TypeCloudBrainTwo debugType = models.TypeCloudBrainTwo
} }


@@ -65,7 +62,6 @@ func DebugJobIndex(ctx *context.Context) {
}, },
RepoID: repo.ID, RepoID: repo.ID,
Type: debugType, Type: debugType,
JobType: jobType,
}) })
if err != nil { if err != nil {
ctx.ServerError("Get debugjob faild:", err) ctx.ServerError("Get debugjob faild:", err)


Loading…
Cancel
Save