You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This include Hydra's launchers and sweepers, so if they appear in your config file you will need to adjust the configs.
Details
ObjectConf:
@dataclassclassObjectConf(Dict[str, Any]):
# class, class method or function nametarget: str=MISSING# parameters to pass to cls when calling itparams: Any=field(default_factory=dict)
TargetConf:
@dataclassclassTargetConf:
""" Use by subclassing and adding fields e.g: @dataclass class UserConf(TargetConf): _target_ = "module.User" name: str = MISSING age: int = MISSING """# class, class method or function name_target_: str=MISSING
This will be deprecated for user code, but for Hydra it's a breaking change because sweeper and launchers will no longer need the pesky params to override their parameters:
$ python foo.py hydra.sweeper.params.max_batch_size=2
# will become
$ python foo.py hydra.sweeper.max_batch_size=2
The text was updated successfully, but these errors were encountered:
Possible alternative designs/names for TargetConf.
Happy to discuss this while it's still hot.
# 1@dataclassclassTargetConf:
# class, class method or function name_target_: str=MISSING#2 @dataclassclassCallConf:
_callable_: str=MISSING#3 @dataclassclassCallConf:
# one of:_class_ : str=MISSING# class only_function_ : str=MISSING# function only_callable_: str=MISSING# either class or function
This is a partial implementation of #566.
TLDR
Object configs is changing from:
to:
This include Hydra's launchers and sweepers, so if they appear in your config file you will need to adjust the configs.
Details
ObjectConf:
TargetConf:
This will be deprecated for user code, but for Hydra it's a breaking change because sweeper and launchers will no longer need the pesky params to override their parameters:
The text was updated successfully, but these errors were encountered: