|
|
|
@@ -1680,6 +1680,7 @@ func CloudBrainBenchmarkIndex(ctx *context.Context) { |
|
|
|
} |
|
|
|
ciTasks[i].TrainJobDuration = models.ConvertDurationToStr(ciTasks[i].Duration) |
|
|
|
} |
|
|
|
ciTasks[i].BenchmarkTypeName = "" |
|
|
|
if ciTasks[i].JobType == string(models.JobTypeBenchmark) { |
|
|
|
ciTasks[i].BenchmarkType = ctx.Tr("repo.cloudbrain.benchmark.algorithm") |
|
|
|
} else if ciTasks[i].JobType == string(models.JobTypeSnn4imagenet) || ciTasks[i].JobType == string(models.JobTypeBrainScore) { |
|
|
|
@@ -1693,7 +1694,7 @@ func CloudBrainBenchmarkIndex(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
ciTasks[i].BenchmarkTypeName = "" |
|
|
|
|
|
|
|
if task.BenchmarkTypeID > 0 { |
|
|
|
for _, benchmarkType := range GetBenchmarkTypes(ctx).BenchmarkType { |
|
|
|
if task.BenchmarkTypeID == benchmarkType.Id { |
|
|
|
|