close
Skip to main content

Python class

Sequential

Sequential

class max.nn.Sequential(layers)

source

Bases: LayerList

A sequential stack of layers.

When called, Sequential accepts the input expected by the first layer, passes the data through each layer in order, and returns the output of the last layer.

Parameters:

layers (Sequence[Layer])