romesco / hydra-lightning

Configuration classes enabling Hydra to configure and manage Pytorch Lightning projects.
MIT License
40 stars 7 forks source link

[tests] callbacks/* - Utilize recursive instantiation or find alternative method #2

Open romesco opened 4 years ago

romesco commented 4 years ago

Quoting @omry:

Something like:

trainer:
  _target_: Trainer
  callback:
    _target_: hydra.utils.get_method
    path: my_callback

Another possibility using existing hydra methods:

_target_ : foo.Foo
callback: ${get_function:my_callback}