QuickstartΒΆ
<Description>
def foo(a, b):
return {"a": a, "b": b}
import hydra_slayer
registry = hydra_slayer.Registry()
registry.add(foo)
# ...
res = registry.get_from_params(**{"_target_": "foo", "a": 1, "b": 2})()
# {"a": 1, "b": 2}
<Description>
def foo(a, b):
return {"a": a, "b": b}
import hydra_slayer
registry = hydra_slayer.Registry()
registry.add(foo)
# ...
res = registry.get_from_params(**{"_target_": "foo", "a": 1, "b": 2})()
# {"a": 1, "b": 2}