Base class for deriving trainable modules.
- class ivy.stateful.sequential.Sequential(*sub_modules, device=None, v=None, dtype=None)[source]#
- __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.
submodules – Submodules to chain together into a sequence.
NativeDevice]]) – device on which to create the layer’s variables ‘cuda:0’, ‘cuda:1’, ‘cpu’ (default:
NativeArray]]) – 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 in the sequential channel or in the sequential forum!