towhee.models.utils.create_act.get_act_fn

towhee.models.utils.create_act.get_act_fn(name: Union[Callable, str] = 'relu')[source]

Activation Function Factory

Fetching activation fns by name with this function allows export or torch script friendly functions to be returned dynamically based on current config.