hydra-lightning icon indicating copy to clipboard operation
hydra-lightning copied to clipboard

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

Open romesco opened this issue 4 years ago • 0 comments

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}

romesco avatar Oct 23 '20 05:10 romesco