Browse Source

提交代码

pull/2117/head
ychao_1983 3 years ago
parent
commit
616e914be4
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      modules/cloudbrain/cloudbrain.go

+ 4
- 2
modules/cloudbrain/cloudbrain.go View File

@@ -1,10 +1,12 @@
package cloudbrain

import (
"code.gitea.io/gitea/modules/timeutil"
"encoding/json"
"errors"
"strconv"
"strings"

"code.gitea.io/gitea/modules/timeutil"

"code.gitea.io/gitea/modules/storage"

@@ -188,7 +190,7 @@ func AdminOrImageCreaterRight(ctx *context.Context) {


func GenerateTask(ctx *context.Context, displayJobName, jobName, image, command, uuid, codePath, modelPath, benchmarkPath, snn4imagenetPath, brainScorePath, jobType, gpuQueue, description, branchName, bootFile, params string, benchmarkTypeID, benchmarkChildTypeID, resourceSpecId int) error {
image = strings.TrimSpace(image)
dataActualPath := setting.Attachment.Minio.RealPath +
setting.Attachment.Minio.Bucket + "/" +
setting.Attachment.Minio.BasePath +


Loading…
Cancel
Save