mirror of https://github.com/coqui-ai/TTS.git
parent
c30b6485ea
commit
4333492341
|
@ -165,7 +165,7 @@ class BCELossMasked(nn.Module):
|
||||||
|
|
||||||
def __init__(self, pos_weight: float = None):
|
def __init__(self, pos_weight: float = None):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.pos_weight = torch.tensor([pos_weight])
|
self.pos_weight = nn.Parameter(torch.tensor([pos_weight]), requires_grad=False)
|
||||||
|
|
||||||
def forward(self, x, target, length):
|
def forward(self, x, target, length):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue