Skip to content

Commit f0b8e89

Browse files
committed
fix lint
1 parent cfc68f3 commit f0b8e89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cosyvoice/hifigan/discriminator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def forward(self, y, y_hat):
165165
y_d_gs = []
166166
fmap_rs = []
167167
fmap_gs = []
168-
for i, d in enumerate(self.discriminators):
168+
for _, d in enumerate(self.discriminators):
169169
y_d_r, fmap_r = d(y)
170170
y_d_g, fmap_g = d(y_hat)
171171
y_d_rs.append(y_d_r)
@@ -219,7 +219,7 @@ def forward(self, y):
219219
y = y.squeeze(1)
220220
y = stft(y, self.fft_size, self.shift_size, self.win_length, self.window.to(y.device))
221221
y = y.unsqueeze(1)
222-
for i, d in enumerate(self.discriminators):
222+
for _, d in enumerate(self.discriminators):
223223
y = d(y)
224224
y = F.leaky_relu(y, LRELU_SLOPE)
225225
fmap.append(y)

0 commit comments

Comments
 (0)