larq/zookeeper

Expose a method to get component values after configuration

mil-ad opened this issue · 0 comments

It might be good idea to have a method that returns a dictionary of configured values for all components. This is needed for instance when one wants to pass the config to experiment tracking libraries such as wandb or polyaxon.

This can currently be done by accessing internal guts of zookeper:

resolved_config = {k: getattr(exp, k) for k in exp.__component_fields__}