eazygrad.nn.ModuleList

class eazygrad.nn.ModuleList[source]

Bases: Module

Simple ordered container for submodules.

Parameters:

None

Notes

ModuleList stores modules in insertion order and exposes them through indexing and iteration. It does not implement a forward pass by itself; it is intended to be used as a building block inside custom modules.

append(m: Module) None[source]
forward(x: Any) Any[source]

Apply the forward pass of the module to the input x

parameters() list[Any][source]