Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.1.1^2
zouap 3 years ago
parent
commit
7e72c21676
1 changed files with 0 additions and 14 deletions
  1. +0
    -14
      routers/repo/ai_model_manage.go

+ 0
- 14
routers/repo/ai_model_manage.go View File

@@ -112,20 +112,6 @@ func saveModelByParameters(jobId string, versionName string, name string, versio

models.UpdateRepositoryUnits(ctx.Repo.Repository, units, deleteUnitTypes)

//
var units []models.RepoUnit
var deleteUnitTypes []models.UnitType
units = append(units, models.RepoUnit{
RepoID: ctx.Repo.Repository.ID,
Type: models.UnitTypeModelManage,
Config: &models.ModelManageConfig{
EnableModelManage: true,
},
})
deleteUnitTypes = append(deleteUnitTypes, models.UnitTypeModelManage)

models.UpdateRepositoryUnits(ctx.Repo.Repository, units, deleteUnitTypes)

log.Info("save model end.")

return nil


Loading…
Cancel
Save