Skip to content

Commit

Permalink
Removed relu.
Browse files Browse the repository at this point in the history
  • Loading branch information
cschaefer26 committed Jul 6, 2020
1 parent 0e4f6a3 commit 6e28829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/forward_tacotron.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def forward(self, x, dur):
@staticmethod
def build_index(duration, x):
duration[duration < 0] = 0
tot_duration = duration.cumsum(1).detach().cpu().numpy().astype('int')
tot_duration = duration.cumsum(1) + 0.5
tot_duration = tot_duration.detach().cpu().numpy().astype('int')
max_duration = int(tot_duration.max().item())
index = np.zeros([x.shape[0], max_duration, x.shape[2]], dtype='long')

Expand Down Expand Up @@ -61,7 +62,6 @@ def forward(self, x, alpha=1.0):
x = x.transpose(1, 2)
x, _ = self.rnn(x)
x = self.lin(x)
x = torch.relu(x)
return x / alpha


Expand Down

0 comments on commit 6e28829

Please sign in to comment.