HoneyTian commited on
Commit
9479717
·
1 Parent(s): 61c260b
toolbox/torchaudio/models/clean_unet/modeling_clean_unet.py CHANGED
@@ -90,7 +90,7 @@ class DecoderBlock(nn.Module):
90
  self.conv = nn.Conv1d(channels_h, channels_h * 2, 1)
91
  self.glu = nn.GLU(dim=1)
92
  self.convt = nn.ConvTranspose1d(channels_h, channels_output, kernel_size, stride)
93
- self.relu = nn.ReLU()
94
 
95
  def forward(self, inputs: torch.Tensor):
96
  # inputs shape: [batch_size, channel, num_samples]
@@ -98,7 +98,8 @@ class DecoderBlock(nn.Module):
98
  x = self.glu(x)
99
  x = self.convt(x)
100
  if self.do_relu:
101
- x = self.relu(x)
 
102
  return x
103
 
104
 
 
90
  self.conv = nn.Conv1d(channels_h, channels_h * 2, 1)
91
  self.glu = nn.GLU(dim=1)
92
  self.convt = nn.ConvTranspose1d(channels_h, channels_output, kernel_size, stride)
93
+ # self.relu = nn.ReLU()
94
 
95
  def forward(self, inputs: torch.Tensor):
96
  # inputs shape: [batch_size, channel, num_samples]
 
98
  x = self.glu(x)
99
  x = self.convt(x)
100
  if self.do_relu:
101
+ x = F.relu(x)
102
+ # x = self.relu(x)
103
  return x
104
 
105