Open ado-ml opened 3 years ago
May I ask why do transpose(1, 3) before BN? Is it intended to do batch normalization for each frequency bin, what is the advantage for this? Thanks.
x = x.transpose(1, 3) x = self.bn0(x) x = x.transpose(1, 3)
That is equivalent to normalize each frequency bin. For example, if there are 64 mel bins, then there are 64 mean values and 64 standard values for normalization.
May I ask why do transpose(1, 3) before BN? Is it intended to do batch normalization for each frequency bin, what is the advantage for this? Thanks.
x = x.transpose(1, 3) x = self.bn0(x) x = x.transpose(1, 3)