Browse Source

fix bug

tags/v1.22.2.2^2
liuzx 3 years ago
parent
commit
fa774f0a68
2 changed files with 0 additions and 5 deletions
  1. +0
    -2
      routers/repo/cloudbrain.go
  2. +0
    -3
      routers/repo/modelarts.go

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

@@ -124,7 +124,6 @@ func cloudBrainNewDataPrepare(ctx *context.Context) error {
ctx.Data["model_path"] = cloudbrain.ModelMountPath
ctx.Data["benchmark_path"] = cloudbrain.BenchMarkMountPath
ctx.Data["is_benchmark_enabled"] = setting.IsBenchmarkEnabled
ctx.Data["debugListType"] = models.GPUResource

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


+ 0
- 3
routers/repo/modelarts.go View File

@@ -131,8 +131,6 @@ func notebookNewDataPrepare(ctx *context.Context) error {
}
ctx.Data["flavors"] = modelarts.FlavorInfos.FlavorInfo

ctx.Data["debugListType"] = models.NPUResource

return nil
}

@@ -273,7 +271,6 @@ func NotebookShow(ctx *context.Context) {
ctx.Data["jobID"] = jobID
ctx.Data["jobName"] = task.JobName
ctx.Data["result"] = result
ctx.Data["debugListType"] = models.NPUResource
ctx.HTML(200, tplModelArtsNotebookShow)
}



Loading…
Cancel
Save