> 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/residual.md).

# residual

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

    # residual layer

    `residual` adds one or more residual blocks https://paperswithcode.com/method/residual-block

    ## optional arguments

    The number of residual blocks to add

    ## input size

    Any 4-d tensor

    ## output size

    Same as input size

    ## syntax

    ```json
      "residual COUNT"
    ```

    ## examples

    ```json
      "residual 3"
    ```
````
