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) – The function of Activation

  • name (Optional[str]) – 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.