towhee.models.utils.create_act.get_act_layer

towhee.models.utils.create_act.get_act_layer(name: Union[Type[Module], str] = 'relu')[source]

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