mravanelli / SincNet

SincNet is a neural architecture for efficiently processing raw audio samples.
MIT License
1.11k stars 260 forks source link

The note about self.n_ is wrong #82

Closed TanTingyi closed 4 years ago

TanTingyi commented 4 years ago

(kernel_size, 1)

n = (self.kernelsize - 1) / 2.0 self.n = 2 math.pi torch.arange(-n, 0).view(1, -1) / self.sample_rate

the size of self.n_ is (1, kernel_size/2)

mravanelli commented 4 years ago

Thank you, changed!