Browse Source

提交代码

tags/v1.22.5.1^2
ychao_1983 3 years ago
parent
commit
425a0b71b9
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      routers/repo/cloudbrain.go

+ 8
- 0
routers/repo/cloudbrain.go View File

@@ -1683,6 +1683,13 @@ func CloudBrainBenchmarkIndex(ctx *context.Context) {
} else if ciTasks[i].JobType == string(models.JobTypeSnn4imagenet) || ciTasks[i].JobType == string(models.JobTypeBrainScore) {
ciTasks[i].BenchmarkType = ctx.Tr("cloudbrain.benchmark.model")
ciTasks[i].BenchmarkTypeName = ciTasks[i].JobType

if ciTasks[i].JobType == string(models.JobTypeSnn4imagenet) {
ciTasks[i].BenchmarkTypeRankLink = setting.Snn4imagenetServerHost
} else {
ciTasks[i].BenchmarkTypeRankLink = setting.BrainScoreServerHost
}

}
ciTasks[i].BenchmarkTypeName = ""
if task.BenchmarkTypeID > 0 {
@@ -1734,6 +1741,7 @@ func CloudBrainBenchmarkNew(ctx *context.Context) {
ctx.Data["description"] = ""
ctx.Data["benchmarkTypeID"] = -1
ctx.Data["benchmark_child_types_id_hidden"] = -1
ctx.Data["type"] = ctx.Query("type")
err := cloudBrainNewDataPrepare(ctx)
if err != nil {
ctx.ServerError("get new cloudbrain info failed", err)


Loading…
Cancel
Save