Specifying different target types for the same operation

You need to do it through a pipeline, or manually assign the run ID yourself.

op1:
  exec: func_1
  flag: 
    a: 1E5
    b: 1E-5
  requires: ...

op2:
  exec: func_2
  flag: 
    b: 1E-5
    c: ''
  require: 
    - operation: op1
      select: '[folder or file generated by op1]'

pipeline:
  flag:
    a: 1E5
    b: 1E-5
    c: ''
  steps:
    - op1 a=${a} b=${b}
    - op2 b=${b} c=${c}

This is covered in https://my.guild.ai/t/pipelines/163.

Also, note that your exec attribute should assign the moduel/function name rather than the command to execute for python scripts. This lead to funny behavior if you have multiple argparsers in the script.

1 Like