Skip to content

Commit 9453375

Browse files
committed
fix depth-wise conv
1 parent 1be7766 commit 9453375

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

conformer/conformer.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ def __init__(self, chan_in, chan_out, kernel_size, padding):
3737
super().__init__()
3838
self.padding = padding
3939
self.conv = nn.Conv1d(chan_in, chan_out, kernel_size, groups = chan_in)
40-
self.conv_out = nn.Conv1d(chan_out, chan_out, 1)
4140

4241
def forward(self, x):
4342
x = F.pad(x, self.padding)
44-
x = self.conv(x)
45-
return self.conv_out(x)
43+
return self.conv(x)
4644

4745
# main class
4846

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'conformer',
55
packages = find_packages(),
6-
version = '0.0.3',
6+
version = '0.1.0',
77
license='MIT',
88
description = 'The convolutional module from the Conformer paper',
99
author = 'Phil Wang',

0 commit comments

Comments
 (0)