Skip to content

Is it possible to define dependency between two different config groups? #2792

Answered by odelalleau
bilzard asked this question in Q&A
Discussion options

You must be logged in to vote

No that shouldn't work, because when parsing the defaults list the content of the config itself is not available yet.

I think what you're trying to achieve would better be done by overriding the defaults list from your feature_extract/v2.yaml, as below.

feature_extract/v2.yaml

defaults:
  - override /preprocess@_global_.preprocess: v2

config.yaml

defaults:
  # Note that the order matters since the second one may override the first one.
  - preprocess: v1
  - feature_extract: v1

Edit: see comment below for a slightly better syntax

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@bilzard
Comment options

@odelalleau
Comment options

Answer selected by bilzard
@bilzard
Comment options

@odelalleau
Comment options

@bilzard
Comment options

@omry
Comment options

omry Nov 15, 2023
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants