Browse Source

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

pull/2458/head
zhoupzh 2 years ago
parent
commit
7fa758157b
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/repo/modelarts.go

+ 3
- 0
routers/repo/modelarts.go View File

@@ -2076,6 +2076,9 @@ func InferenceJobIndex(ctx *context.Context) {
for i, task := range tasks {
tasks[i].CanDel = cloudbrain.CanDeleteJob(ctx, &task.Cloudbrain)
tasks[i].CanModify = cloudbrain.CanModifyJob(ctx, &task.Cloudbrain)
if tasks[i].ComputeResource == "" {
tasks[i].ComputeResource = models.NPUResource
}
}

repoId := ctx.Repo.Repository.ID


Loading…
Cancel
Save