class_docstr: A sequence of [`equinox.Module`][]s applied in order.
  
  !!! note
  
      Activation functions can be added by wrapping them in [`equinox.nn.Lambda`][].
docstr: **Arguments:**
  
  - `layers`: A sequence of [`equinox.Module`][]s.
docstr_tok: ["*","*","Arguments",":","*","*","-","`","layers","`",":","A","sequence","of","[","`","equinox.Module","`","]","[","]","s","."]
code: def __init__(self, layers: Sequence[Callable]):
      """**Arguments:**
  
      - `layers`: A sequence of [`equinox.Module`][]s.
      """
  
      self.layers = tuple(layers)
  
imports: from collections.abc import Callable, Sequence
  from typing import Any, Optional, overload, Union
  import jax
  import jax.random
  from jaxtyping import Array, PRNGKeyArray
  from .._better_abstract import AbstractClassVar
  from .._custom_types import sentinel
  from .._module import Module, StrictConfig
  from ._stateful import State
label_desc: Use image node_id 1 to create a new Sequential object from inherited base classes: StatefulLayer with example: obj = Sequential(layers)