Browse Source

fix 2354

tags/v1.22.6.2
lewis 3 years ago
parent
commit
176713b948
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      routers/repo/grampus.go

+ 6
- 0
routers/repo/grampus.go View File

@@ -89,6 +89,12 @@ func grampusTrainJobNewDataPrepare(ctx *context.Context, processType string) err


ctx.Data["branchName"] = ctx.Repo.BranchName ctx.Data["branchName"] = ctx.Repo.BranchName


if processType == grampus.ProcessorTypeGPU {
ctx.Data["datasetType"] = models.TypeCloudBrainOne
} else if processType == grampus.ProcessorTypeNPU {
ctx.Data["datasetType"] = models.TypeCloudBrainTwo
}

return nil return nil
} }




Loading…
Cancel
Save