# resizable\_stack

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

    # resizable_stack layer

    `resizable_stack` allows for variable size outputs on the generator. A conv stack is repeated until the output size is reached.

    If you specify "segment_softmax" this repeats the pattern:
      upsample
      normalize(expects style vector named 'w')
      conv ...
      activation(before last layer)

    and ends in:
      segment_softmax output_channels

    ## arguments
        * layer type. Defaults to "segment_softmax"
    ## optional arguments
        * segment_channels - The number of channels before segment_softmax. Defaults to 5
        * max_channels - The most channels for any conv. Default 256
        * style - the style vector to use. Default "w"
    ## input size

    Any 4-d tensor

    ## output size

    [B, output channels, output height, output width]

    ## syntax

    ```json
      "resizable_stack segment_softmax"
    ```

    ## examples

    ```json
      "identity name=w",
      "linear 8*8*256",
      "relu",
      "resizable_stack segment_softmax",
      "hardtanh"
    ```
````


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hypergan.gitbook.io/hypergan/components/layers/resizable_stack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
