|
|
|
@@ -161,6 +161,13 @@ func (m *ModelArtsLink) SubmitTask(ctx context.Context, imageId string, cmd stri |
|
|
|
inputs := make([]*modelarts.InputTraining, 0) |
|
|
|
outputs := make([]*modelarts.OutputTraining, 0) |
|
|
|
outputValue := "" |
|
|
|
|
|
|
|
// add default param, env |
|
|
|
current_id := strconv.Itoa(int(m.participantId)) |
|
|
|
current_platform := CURRENT_PLATFORM + COMMA + current_id |
|
|
|
params = append(params, current_platform) |
|
|
|
envs = append(envs, current_platform) |
|
|
|
|
|
|
|
for _, env := range envs { |
|
|
|
// 找到第一个逗号位置 |
|
|
|
idx := strings.Index(env, COMMA) |
|
|
|
|