Browse Source

update

pull/1276/head
liuzx 3 years ago
parent
commit
d4b4cc7603
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      routers/repo/modelarts.go

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

@@ -54,8 +54,10 @@ func DebugJobIndex(ctx *context.Context) {
page = 1
}
debugType := modelarts.DebugType
jobTypeNot := false
if debugListType == models.GPUResource {
debugType = models.TypeCloudBrainOne
jobTypeNot = true
} else if debugListType == models.NPUResource {
debugType = models.TypeCloudBrainTwo
}
@@ -67,8 +69,8 @@ func DebugJobIndex(ctx *context.Context) {
},
RepoID: repo.ID,
Type: debugType,
JobTypeNot: true,
JobType: string(models.JobTypeTrain),
JobTypeNot: jobTypeNot,
JobType: string(models.JobTypeDebug),
})
if err != nil {
ctx.ServerError("Get debugjob faild:", err)


Loading…
Cancel
Save