Sequential

Base class for deriving trainable modules

class ivy.stateful.sequential.Sequential(*sub_modules, device=None, v=None, dtype=None)[source]

Bases: Module

__init__(*sub_modules, device=None, v=None, dtype=None)[source]

A sequential container. Modules will be added to it in the order they are passed in the constructor.

Parameters
  • submodules – Submodules to chain together into a sequence.

  • device (Optional[Union[Device, NativeDevice]]) – device on which to create the layer’s variables ‘cuda:0’, ‘cuda:1’, ‘cpu’ (default: None) etc.

  • v (Optional[Union[Array, NativeVariable]]) – the variables for each submodule in the sequence, constructed internally by (default: None) default.

This should have hopefully given you an overview of the sequential submodule,If you have any questions, please feel free to reach out on our discord in the sequential channel or in the sequential forum!