Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2480/head
zouap 3 years ago
parent
commit
6ed6de9a1a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/ai_model_convert.go

+ 1
- 1
routers/repo/ai_model_convert.go View File

@@ -83,7 +83,7 @@ func SaveModelConvert(ctx *context.Context) {
} }


func createTrainJob(modelConvert *models.AiModelConvert, ctx *context.Context, modelRelativePath string) error { func createTrainJob(modelConvert *models.AiModelConvert, ctx *context.Context, modelRelativePath string) error {
repo, _ := models.GetRepositoryByID(ctx.Repo.Repository.RepoID)
repo, _ := models.GetRepositoryByID(ctx.Repo.Repository.ID)
if modelConvert.SrcEngine == PYTORCH_ENGINE { if modelConvert.SrcEngine == PYTORCH_ENGINE {
codePath := setting.JobPath + modelConvert.ID + CodeMountPath codePath := setting.JobPath + modelConvert.ID + CodeMountPath
downloadCode(repo, codePath, DefaultBranchName) downloadCode(repo, codePath, DefaultBranchName)


Loading…
Cancel
Save