|
|
@@ -626,7 +626,7 @@ func GetAllCloudbrainsPeriodDistribution(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
jobTypeList := []string{string(models.JobTypeDebug), string(models.JobTypeTrain), string(models.JobTypeInference), string(models.JobTypeBenchmark), |
|
|
|
string(models.JobTypeBrainScore), string(models.JobTypeSnn4imagenet)} |
|
|
|
string(models.JobTypeModelSafety), string(models.JobTypeBrainScore), string(models.JobTypeSnn4imagenet)} |
|
|
|
for _, v := range jobTypeList { |
|
|
|
if _, ok := cloudOneJobTypeRes[v]; !ok { |
|
|
|
cloudOneJobTypeRes[v] = 0 |
|
|
@@ -709,7 +709,7 @@ func GetCloudbrainsDetailData(ctx *context.Context) { |
|
|
|
var jobTypes []string |
|
|
|
jobTypeNot := false |
|
|
|
if jobType == string(models.JobTypeBenchmark) { |
|
|
|
jobTypes = append(jobTypes, string(models.JobTypeBenchmark), string(models.JobTypeBrainScore), string(models.JobTypeSnn4imagenet)) |
|
|
|
jobTypes = append(jobTypes, string(models.JobTypeBenchmark), string(models.JobTypeModelSafety), string(models.JobTypeBrainScore), string(models.JobTypeSnn4imagenet)) |
|
|
|
} else if jobType != "all" && jobType != "" { |
|
|
|
jobTypes = append(jobTypes, jobType) |
|
|
|
} |
|
|
|