get_all_sub_models
- plugins.train.model._base.io.get_all_sub_models(model: Model, models: list[Model] | None = None) list[Model]
For a given model, return all sub-models that occur (recursively) as children.
- Parameters:
model (Model) – A Keras model to scan for sub models
models (list[Model] | None) – Do not provide this parameter. It is used for recursion
- Returns:
A list of all
keras.models.Modelobjects found within the given model. The providedmodel will always be returned in the first position
- Return type:
list[Model]