Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.10.1^2
zouap 3 years ago
parent
commit
340bb6a26a
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      routers/repo/aisafety.go

+ 4
- 2
routers/repo/aisafety.go View File

@@ -347,9 +347,11 @@ func sendNPUInferenceResultToTest(job *models.Cloudbrain) {
EvalContent: EvalContent,
TLPath: "test",
Indicators: strings.Split(indicator, ";"),
CDName: datasetnames[1][0 : len(datasetnames[1])-4],
BDName: datasetnames[0][0 : len(datasetnames[1])-4],
CDName: strings.Split(datasetnames[1], ",")[0],
BDName: strings.Split(datasetnames[1], ",")[0],
}
log.Info("CDName=" + req.CDName)
log.Info("BDName=" + req.BDName)
jsonContent := ""
VersionOutputPath := modelarts.GetOutputPathByCount(modelarts.TotalVersionCount)
resultPath := modelarts.JobPath + job.JobName + modelarts.ResultPath + VersionOutputPath + "/result.json"


Loading…
Cancel
Save