Section Navigation
Validate the channel mask of a padded batch.
ch_mask (Optional[Tensor]) – Mask of shape (batch, n_chans), True for real channels and False for padding.
Optional
Tensor
(batch, n_chans)
True
False
x (Tensor) – Input of shape (batch, n_chans, ...) the mask describes.
(batch, n_chans, ...)
ch_mask as a boolean tensor on the device of x, or None. Every sample must have a real channel, which is checked in eager mode only.
ch_mask
x
None
Optional[Tensor]
check_ch_mask()