aluminumbox commited on
Commit
0707207
·
verified ·
1 Parent(s): 7315253

Update cosyvoice/hifigan/f0_predictor.py

Browse files
Files changed (1) hide show
  1. cosyvoice/hifigan/f0_predictor.py +1 -1
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:])