Browse Source

提交代码

tags/v1.22.6.2^2
ychao_1983 3 years ago
parent
commit
c1466464a9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/repo/grampus.go

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

@@ -156,6 +156,7 @@ func GrampusTrainJobGpuCreate(ctx *context.Context, form auth.CreateGrampusTrain
if errStr != "" {
grampusTrainJobNewDataPrepare(ctx, grampus.ProcessorTypeGPU)
ctx.RenderWithErr(errStr, tplGrampusTrainJobGPUNew, &form)
return
}

//check count limit
@@ -338,6 +339,7 @@ func GrampusTrainJobNpuCreate(ctx *context.Context, form auth.CreateGrampusTrain
if errStr != "" {
grampusTrainJobNewDataPrepare(ctx, grampus.ProcessorTypeNPU)
ctx.RenderWithErr(errStr, tplGrampusTrainJobGPUNew, &form)
return
}

//check count limit


Loading…
Cancel
Save