Spaces:
Running
on
Zero
Running
on
Zero
Update cosyvoice/hifigan/f0_predictor.py
Browse files
cosyvoice/hifigan/f0_predictor.py
CHANGED
|
@@ -94,7 +94,7 @@ class CausalConvRNNF0Predictor(nn.Module):
|
|
| 94 |
|
| 95 |
def forward(self, x: torch.Tensor, finalize: bool = True) -> torch.Tensor:
|
| 96 |
if finalize is True:
|
| 97 |
-
print('{} {}'.format(x.device, self.condnet[0].weight.device))
|
| 98 |
x = self.condnet[0](x)
|
| 99 |
else:
|
| 100 |
x = self.condnet[0](x[:, :, :-self.condnet[0].causal_padding], x[:, :, -self.condnet[0].causal_padding:])
|
|
|
|
| 94 |
|
| 95 |
def forward(self, x: torch.Tensor, finalize: bool = True) -> torch.Tensor:
|
| 96 |
if finalize is True:
|
| 97 |
+
print('x.device {} weight.device {}'.format(x.device, self.condnet[0].weight.device))
|
| 98 |
x = self.condnet[0](x)
|
| 99 |
else:
|
| 100 |
x = self.condnet[0](x[:, :, :-self.condnet[0].causal_padding], x[:, :, -self.condnet[0].causal_padding:])
|