Add a _scope_ keyword for instantiation to specify a root module #2882
ryan-minato
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Perhaps a scope keyword could be added to specify a common root module for a dictionary and its sub-dictionaries, similar to what is done in mmengine.
One quick (but maybe ugly) implementation I can think of is to search for all
_scope_
when reading the configuration and then prepend it to the target of the same level and sub-level.e.g.
the following two configurations would be equivalent:
conf1:
conf2:
Beta Was this translation helpful? Give feedback.
All reactions