|
|
|
@@ -393,11 +393,17 @@ func GenerateModelConvertTrainJob(req *GenerateTrainJobReq) (*models.CreateTrain |
|
|
|
Description: req.Description, |
|
|
|
Config: models.UserImageConfig{ |
|
|
|
WorkServerNum: req.WorkServerNumber, |
|
|
|
AppUrl: req.CodeObsPath, |
|
|
|
BootFileUrl: req.BootFileUrl, |
|
|
|
DataUrl: req.DataUrl, |
|
|
|
TrainUrl: req.TrainUrl, |
|
|
|
LogUrl: req.LogUrl, |
|
|
|
PoolID: req.PoolID, |
|
|
|
CreateVersion: true, |
|
|
|
Flavor: models.Flavor{ |
|
|
|
Code: req.FlavorCode, |
|
|
|
}, |
|
|
|
Parameter: req.Parameters, |
|
|
|
UserImageUrl: req.UserImageUrl, |
|
|
|
UserCommand: req.UserCommand, |
|
|
|
}, |
|
|
|
|