Browse Source

导入模型支持智算网络。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
eeb3996231
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      routers/repo/ai_model_manage.go
  2. +1
    -1
      templates/repo/modelmanage/index.tmpl

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

@@ -501,6 +501,7 @@ func QueryTrainModelList(ctx *context.Context) {
VersionName := ctx.Query("VersionName")
if taskType == models.TypeCloudBrainTwo {
objectkey := path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, VersionName) + "/"
log.Info("object key=" + objectkey)
modelDbResult, err := storage.GetAllObjectByBucketAndPrefix(setting.Bucket, objectkey)
log.Info("bucket=" + setting.Bucket + " objectkey=" + objectkey)
if err != nil {


+ 1
- 1
templates/repo/modelmanage/index.tmpl View File

@@ -441,7 +441,7 @@
console.log("trainJob is null");
}else{
let type = trainJob.Type;
if(type == 3){
if(type == 2){
if(trainJob.ComputeResource=="NPU"){
type=1;
}else{


Loading…
Cancel
Save