IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Python class

LayerList

LayerList

class max.nn.LayerList(layers)

source

Bases: Module

Stores a list of layers.

Can be used as a regular Python list.

For a stack of layers where each layer consumes the previous layer’s output, prefer Sequential, which subclasses this class.

Parameters:

layers (Sequence[Layer]) – The layers to store in the list.

append()

append(layer)

source

Parameters:

layer (Layer)

Return type:

None

extend()

extend(layer)

source

Parameters:

layer (Layer)

Return type:

None

insert()

insert(i, layer)

source

Parameters:

Return type:

None

sublayers

property sublayers: dict[str, Module]

source