Hydra config utils
get_target_of_config #
get_target_of_config(
config_group: str,
config_name: str,
_cs: ConfigStore | None = None,
) -> Callable
Returns the class that is to be instantiated by the given config name.
In the case of inner dataclasses (e.g. Model.HParams), this returns the outer class (Model).
get_all_configs_in_group_of_type #
get_all_configs_in_group_of_type(
config_group: str,
config_target_type: type | tuple[type, ...],
include_subclasses: bool = True,
excluding: type | tuple[type, ...] = (),
) -> list[str]
Returns the names of all the configs in the given config group that have this target or a subclass of it.