physioex.data.stack_channels#

physioex.data.stack_channels(batch)[source]#

Convert a collated dict batch to a (B, L, C, …) tensor for model input.

Uses the user-specified channel_order to stack signals consistently.

Parameters:

batch (Dict[str, Any])

Return type:

Tensor