Activation

Activation#

class brainpy.dnn.Activation(activate_fun, name=None, mode=None, **kwargs)[source]#

Applies an activation function to the inputs

Parameters:#

activate_fun: Callable, function

The function of Activation

name: str, Optional

The name of the object

mode: Mode

Enable training this node or not. (default True).

update(*args, **kwargs)[source]#

The function to specify the updating rule.