Skip to content

Commit

Permalink
Merge pull request #369 from kan-bayashi/fix_extream_slow
Browse files Browse the repository at this point in the history
  • Loading branch information
kan-bayashi authored Jun 6, 2022
2 parents f32bdb9 + c48d1ee commit 1f7949f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parallel_wavegan/bin/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ def __call__(self, batch):
c_batch = [c[start:end] for c, start, end in zip(cs, c_starts, c_ends)]

# convert each batch to tensor, asuume that each item in batch has the same length
y_batch, c_batch = np.array(y_batch), np.array(c_batch)
y_batch = torch.tensor(y_batch, dtype=torch.float).unsqueeze(1) # (B, 1, T)
c_batch = torch.tensor(c_batch, dtype=torch.float).transpose(2, 1) # (B, C, T')

Expand Down

0 comments on commit 1f7949f

Please sign in to comment.