Flatten#

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

Flattens a contiguous range of dims into 2D or 1D.

Parameters:#

name: str, Optional

The name of the object

mode: Mode

Enable training this node or not. (default True)

update(x)[source]#

The function to specify the updating rule.