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_inof 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
Layerinstances to stack.- Returns:
The combined
LayerStack.- Return type:
layer_stack