Apply masking to a spectrogram.

transform__axismasking(mask_param, axis, iid_masks)

Arguments

mask_param

(int): Maximum possible length of the mask.

axis

(int): What dimension the mask is applied on.

iid_masks

(bool): Applies iid masks to each of the examples in the batch dimension. This option is applicable only when the input tensor is 4D.

Value

Tensor: Masked spectrogram of dimensions (..., freq, time).

Details

forward param: specgram (Tensor): Tensor of dimension (..., freq, time).

mask_value (float): Value to assign to the masked columns.