Browse Source

出错之后,任务信息原样返回。

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

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

@@ -978,6 +978,9 @@ func modelSafetyNewDataPrepare(ctx *context.Context) error {
ctx.Data["CombatDataSetName"] = setting.ModelSafetyTest.GPUCombatDataSetName
ctx.Data["CombatDataSetUUID"] = setting.ModelSafetyTest.GPUCombatDataSetUUID
} else {
ctx.Data["engine_id"] = ctx.QueryInt("engine_id")
ctx.Data["pool_id"] = ctx.Query("pool_id")

ctx.Data["type"] = models.TypeCloudBrainTwo
ctx.Data["compute_resource"] = models.NPUResource
ctx.Data["datasetType"] = models.TypeCloudBrainTwo


Loading…
Cancel
Save