# helia_edge.layers.preprocessing.augmentation_pipeline

Serializable composition of preprocessing and training-only augmentation.

## helia_edge.layers.preprocessing.augmentation_pipeline.AugmentationPipeline

`class` · `python`

```python
AugmentationPipeline(layers: list[keras.Layer], name=None, force_training=False, **kwargs={})
```

Apply layers in order to a tensor or structured sample.

Each child receives the preceding child's output and the training flag.
Layers must accept ``training`` and, when supplied, ``transformations``.
Calling with transformations requires one entry per layer; use None for
a child that should sample its own parameters.

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| layers | list[keras.Layer] | Required | Ordered layers to apply. The layer objects are retained. |
| name | str \| None | None | Optional Keras layer name. |
| force_training | bool | False | Pass training=True to every child, including at inference. |
| **kwargs | Any | {} | Additional Keras Layer arguments. |

**Raises**

| Name | Description |
| --- | --- |
| ValueError | The supplied transformations count differs from the layer count. |

Source: `helia_edge/layers/preprocessing/augmentation_pipeline.py:8`

### helia_edge.layers.preprocessing.augmentation_pipeline.AugmentationPipeline.layers

`attribute` · `python`

```python
layers = layers
```

Source: `helia_edge/layers/preprocessing/augmentation_pipeline.py:30`

### helia_edge.layers.preprocessing.augmentation_pipeline.AugmentationPipeline.force_training

`attribute` · `python`

```python
force_training = force_training
```

Source: `helia_edge/layers/preprocessing/augmentation_pipeline.py:31`

### helia_edge.layers.preprocessing.augmentation_pipeline.AugmentationPipeline.call

`method` · `python`

```python
call(inputs, training=None, transformations=None)
```

Source: `helia_edge/layers/preprocessing/augmentation_pipeline.py:33`

### helia_edge.layers.preprocessing.augmentation_pipeline.AugmentationPipeline.get_config

`method` · `python`

```python
get_config()
```

Source: `helia_edge/layers/preprocessing/augmentation_pipeline.py:42`

### helia_edge.layers.preprocessing.augmentation_pipeline.AugmentationPipeline.from_config

`method` · `python`

```python
from_config(config)
```

`classmethod`

Source: `helia_edge/layers/preprocessing/augmentation_pipeline.py:49`
