towhee.hparam.hyperparameter.dynamic_dispatch

towhee.hparam.hyperparameter.dynamic_dispatch(func, name=None, index=None)[source]

Wraps function with a class to allow __getitem__ and __getattr__ on a function.