Apply masking to a spectrogram.
transform__axismasking(mask_param, axis, iid_masks)
(int): Maximum possible length of the mask.
(int): What dimension the mask is applied on.
(bool): Applies iid masks to each of the examples in the batch dimension. This option is applicable only when the input tensor is 4D.
Tensor: Masked spectrogram of dimensions (..., freq, time).
forward param: specgram (Tensor): Tensor of dimension (..., freq, time).
mask_value (float): Value to assign to the masked columns.