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

Update cosyvoice/hifigan/f0_predictor.py

Browse files
Files changed (1) hide show
  1. cosyvoice/hifigan/f0_predictor.py +1 -0
cosyvoice/hifigan/f0_predictor.py CHANGED
@@ -94,6 +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
  x = self.condnet[0](x)
98
  else:
99
  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('{} {}'.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:])