Layer#

class brainpy.dnn.Layer(name=None, mode=None)[source]#

Base class for a layer of artificial neural network.

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

Reset function which resets local states in this model.

Simply speaking, this function should implement the logic of resetting of local variables in this node.

See https://brainpy.readthedocs.io/en/latest/tutorial_toolbox/state_resetting.html for details.