LayerStack
==========

.. currentmodule:: penzai.experimental.v2.nn.layer_stack

.. autoclass:: LayerStack
  :members:
  :special-members:
  :show-inheritance:


  
  
    
    
    

  

  
  
  
  
  
  
  
  
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

  
  .. rubric:: Methods
  .. autosummary::
  
    
    ~LayerStack.__init__
    
    
    
    
    
    ~LayerStack.from_sublayer_builder
    
    
    ~LayerStack.key_for_field
    
    
    
    
    
    
    
    
    ~LayerStack.__call__
    
  

  
  .. rubric:: Attributes
  .. autosummary::
  
    ~LayerStack.stacked_sublayers
    ~LayerStack.stack_axis
    ~LayerStack.stack_axis_size
  

  

  .. rubric:: Inherited Methods
  .. raw:: html

    <details style="margin-bottom: 1.5rem">
      <summary style="font-style:italic">(expand to view inherited methods)</summary>

  .. autosummary::
  
    
    
    ~LayerStack.attributes_dict
    
    
    ~LayerStack.bind_variables
    
    
    ~LayerStack.from_attributes
    
    
    
    
    ~LayerStack.select
    
    
    ~LayerStack.stateless_call
    
    
    ~LayerStack.tree_flatten
    
    
    ~LayerStack.tree_flatten_with_keys
    
    
    ~LayerStack.tree_unflatten
    
    
    ~LayerStack.treescope_color
    
    

  .. raw:: html

    </details>

  