---
search:
  boost: 0.5
---

[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.)

# :test_tube:{ title="Experimental" } <code class="doc-symbol doc-symbol-class"></code> `Layer` {#safeds.ml.nn.layers.Layer data-toc-label='[class] Layer'}

**Inheritors:**

- [`AveragePooling2DLayer`][safeds.ml.nn.layers.AveragePooling2DLayer]
- [`Convolutional2DLayer`][safeds.ml.nn.layers.Convolutional2DLayer]
- [`DropoutLayer`][safeds.ml.nn.layers.DropoutLayer]
- [`FlattenLayer`][safeds.ml.nn.layers.FlattenLayer]
- [`ForwardLayer`][safeds.ml.nn.layers.ForwardLayer]
- [`GRULayer`][safeds.ml.nn.layers.GRULayer]
- [`LSTMLayer`][safeds.ml.nn.layers.LSTMLayer]
- [`MaxPooling2DLayer`][safeds.ml.nn.layers.MaxPooling2DLayer]

??? quote "Stub code in `Layer.sdsstub`"

    ```sds linenums="6"
    class Layer
    ```
    { data-search-exclude }
