LayerList

class paddle.fluid.dygraph.LayerList(sublayers=None)[source]

LayerList holds sublayers, and sublayers it contains are properly registered. Holded sublayers can be indexed like a regular python list.

Parameters

sublayers (iterable of Layer, optional) – sublayers to hold

Examples

append(sublayer)

Appends a sublayer to the end of the list.

Parameters

sublayer (Layer) – sublayer to append