Linear
======

.. currentmodule:: penzai.nn.linear_and_affine

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


  
  
    
    
    
    
    
    

  

  
  
  
  
  
  
  
  
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

  
  .. rubric:: Methods
  .. autosummary::
  
    
    ~Linear.__init__
    
    
    
    
    ~Linear.from_config
    
    
    ~Linear.input_structure
    
    
    
    ~Linear.output_structure
    
    
    
    
    
    
    ~Linear.treescope_color
    
    
    ~Linear.__call__
    
  

  
  .. rubric:: Attributes
  .. autosummary::
  
    ~Linear.input_axes
    ~Linear.output_axes
    ~Linear.parallel_axes
    ~Linear.weights
    ~Linear.in_axis_names
    ~Linear.out_axis_names
  

  

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

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

  .. autosummary::
  
    
    
    ~Linear.attributes_dict
    
    
    ~Linear.from_attributes
    
    
    
    
    ~Linear.key_for_field
    
    
    
    ~Linear.select
    
    
    ~Linear.tree_flatten
    
    
    ~Linear.tree_flatten_with_keys
    
    
    ~Linear.tree_unflatten
    
    
    

  .. raw:: html

    </details>

  