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]#
Initialize 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
]], default:None
) – device on which to create the layer’s variables ‘cuda:0’, ‘cuda:1’, ‘cpu’ etc.v (
Optional
[Union
[Array
,NativeArray
]], default:None
) – the variables for each submodule in the sequence, constructed internally by 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!