guided attn #11

This commit is contained in:
Eren Golge 2018-04-24 11:39:58 -07:00
parent 62b5ee8f38
commit bbf751a26d
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def train(model, criterion, data_loader, optimizer, epoch):
# create attention mask
# TODO: vectorize
N = text_input_var.shape[1]
T = mel_spec_var.shape[1] / c.r
T = mel_spec_var.shape[1] // c.r
M = np.zeros([N, T])
for t in range(T):
for n in range(N):