> For the complete documentation index, see [llms.txt](https://hypergan.gitbook.io/hypergan/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hypergan.gitbook.io/hypergan/components/layers/add.md).

# add

````
    description: 'layer add for configurable component'
    ---

    # add layer

    Adds two or more layers together. Accepts nested layer definitions.

    ## input size

    Any number of matching tensors

    ## output size

    Same as input size

    ## syntax

    ```json
      "add [layer]*"
    ```

    ## examples

    ```json
      "add self (attention)"
    ```
````
