Sequential

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, Device, str, device]]) – device on which to create the layer’s variables ‘cuda:0’, ‘cuda:1’, ‘cpu’ (default: None) etc.

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


Supported Frameworks: