|
|
@@ -124,7 +124,6 @@ func cloudBrainNewDataPrepare(ctx *context.Context) error { |
|
|
ctx.Data["model_path"] = cloudbrain.ModelMountPath |
|
|
ctx.Data["model_path"] = cloudbrain.ModelMountPath |
|
|
ctx.Data["benchmark_path"] = cloudbrain.BenchMarkMountPath |
|
|
ctx.Data["benchmark_path"] = cloudbrain.BenchMarkMountPath |
|
|
ctx.Data["is_benchmark_enabled"] = setting.IsBenchmarkEnabled |
|
|
ctx.Data["is_benchmark_enabled"] = setting.IsBenchmarkEnabled |
|
|
ctx.Data["debugListType"] = models.GPUResource |
|
|
|
|
|
|
|
|
|
|
|
if categories == nil { |
|
|
if categories == nil { |
|
|
json.Unmarshal([]byte(setting.BenchmarkCategory), &categories) |
|
|
json.Unmarshal([]byte(setting.BenchmarkCategory), &categories) |
|
|
@@ -423,7 +422,6 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName) { |
|
|
ctx.Data["task"] = task |
|
|
ctx.Data["task"] = task |
|
|
// ctx.Data["jobID"] = task.JobID |
|
|
// ctx.Data["jobID"] = task.JobID |
|
|
ctx.Data["jobName"] = task.JobName |
|
|
ctx.Data["jobName"] = task.JobName |
|
|
ctx.Data["debugListType"] = models.GPUResource |
|
|
|
|
|
version_list_task := make([]*models.Cloudbrain, 0) |
|
|
version_list_task := make([]*models.Cloudbrain, 0) |
|
|
version_list_task = append(version_list_task, task) |
|
|
version_list_task = append(version_list_task, task) |
|
|
ctx.Data["version_list_task"] = version_list_task |
|
|
ctx.Data["version_list_task"] = version_list_task |
|
|
|