|
|
|
@@ -1439,6 +1439,7 @@ func getTrainJobCommand(form auth.CreateCloudBrainForm) (string, error) { |
|
|
|
} |
|
|
|
|
|
|
|
var parameters models.Parameters |
|
|
|
var param string |
|
|
|
if len(params) != 0 { |
|
|
|
err := json.Unmarshal([]byte(params), ¶meters) |
|
|
|
if err != nil { |
|
|
|
@@ -1447,11 +1448,11 @@ func getTrainJobCommand(form auth.CreateCloudBrainForm) (string, error) { |
|
|
|
} |
|
|
|
|
|
|
|
for _, parameter := range parameters.Parameter { |
|
|
|
command += "export " + parameter.Label + "=" + parameter.Value + ";" |
|
|
|
param += " --" + parameter.Label + "=" + parameter.Value |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
command += "python /code/" + bootFile |
|
|
|
command += "python /code/" + bootFile + param + " > " + cloudbrain.ModelMountPath + "/" + cloudbrain.LogFile |
|
|
|
|
|
|
|
return command, nil |
|
|
|
} |
|
|
|
|