class
AugmentationPipeline
PythonApply layers in order to a tensor or structured sample.
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
| Type | Description |
|---|---|
ValueError | The supplied transformations count differs from the layer count. |
attribute
layers
Pythonlayers = layersattribute
force_training
Pythonforce_training = force_trainingmethod
call
Pythoncall(inputs, training=None, transformations=None)method
get_config
Pythonget_config()method
from_config
Pythonfrom_config(config)classmethod