pyhgf.typing.vectorised.stack_layers#

pyhgf.typing.vectorised.stack_layers(layers)[source]#

Combine N identical Layer instances into a single LayerStack.

All Layer``s must share static-field values (kind, coupling_fn, add_constant_input, has_volatility_parent, fully_connected) and have ``weights_in of identical shape. Static fields are taken from the first layer; arrays are stacked along a new axis 0.

Parameters:

layers (list) – The list of identical Layer instances to stack.

Returns:

The combined LayerStack.

Return type:

layer_stack