Base class for deriving trainable modules
- class ivy.stateful.sequential.Sequential(*sub_modules, device=None, v=None, dtype=None)
- __init__(*sub_modules, device=None, v=None, dtype=None)
A sequential container. Modules will be added to it in the order they are passed in the constructor.
submodules – Submodules to chain together into a sequence.
device – device on which to create the layer’s variables ‘cuda:0’, ‘cuda:1’, ‘cpu’ etc.
v – the variables for each submodule in the sequence, constructed internally by default.