Update model.py

This commit is contained in:
Mingshuang Luo 2022-04-11 21:09:12 +08:00 committed by GitHub
parent 92e90bd055
commit 7320e0ea89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,8 +142,8 @@ class Transducer(nn.Module):
boundary[:, 2] = y_lens
boundary[:, 3] = x_lens
lm=self.simple_lm_proj(decoder_out)
am=self.simple_am_proj(encoder_out)
lm = self.simple_lm_proj(decoder_out)
am = self.simple_am_proj(encoder_out)
with torch.cuda.amp.autocast(enabled=False):
simple_loss, (px_grad, py_grad) = k2.rnnt_loss_smoothed(