raymondxyy / pyaudlib

A speech signal processing library in Python with emphasis on deep learning.
MIT License
31 stars 6 forks source link

ASR Main Scripts #7

Open raymondxyy opened 5 years ago

raymondxyy commented 5 years ago

This issue focuses on debugging airbus_attention_vtlp_CTC.py that first appears in commit 1857440 @ShangwuYao. Leave the major changes you did in the next section, and anything else to be done in the to-do section.

Major Changes in Commit 05eb1ec

By @raymondxyy.

TODOs


BUGs

REVIEWs

ShangwuYao commented 5 years ago
batch[0][0].new(batch_size, max_len, 40).zero_().float()

This line of code initialize the new data on the same device as batch[0][0] to avoid the overhead of moving data between devices.