pyhgf.typing.vectorised.stack_layers#
- pyhgf.typing.vectorised.stack_layers(layers)[source]#
Combine N identical
Layerinstances into a singleLayerStack.All
Layer``s must share static-field values (kind, coupling_fn, add_constant_input, has_volatility_parent, fully_connected) and have ``weights_meanof identical shape. Static fields are taken from the first layer; arrays are stacked along a new axis 0.A
LayerStackcarries no DAG topology, so the continuous-layer fields (value_child_idx,volatility_child_idx,volatility_weights) have no counterpart here and continuous layers cannot be stacked.- Parameters:
layers (list) – The list of identical
Layerinstances to stack.- Returns:
The combined
LayerStack.- Return type:
layer_stack