Flatten# class brainpy.dnn.Flatten(name=None, mode=None)[source]# Flattens a contiguous range of dims into 2D or 1D. Parameters:# name: str, OptionalThe name of the object mode: ModeEnable training this node or not. (default True) update(x)[source]# The function to specify the updating rule.