Skip to main content

Sequential

Run the given modules in order: Sequential(a, b)(x) == b(a(x)).

__init__

__init__(self, *modules: 'Module') -> 'None'

Initialize self. See help(type(self)) for accurate signature.

append

append(self, module: 'Module') -> "'Sequential'"

forward

forward(self, x: 'Any') -> 'Any'

Subclasses define the computation here; call the module itself (m(x)), not forward directly.