mayank-git-hub / ETE-Speech-Recognition

Implementation of Hybrid CTC/Attention Architecture for End-to-End Speech Recognition in pure python and PyTorch
Apache License 2.0
26 stars 2 forks source link

model.py line 501 RuntimeError: result type Byte can't be cast to the desired output type Bool #2

Closed FriedaSmith closed 4 years ago

FriedaSmith commented 4 years ago

Excuse me. In the model.py, line 501: return ys_mask.unsqueeze(-2) & m In training, it made this error. The error information: RuntimeError: result type Byte can't be cast to the desired output type Bool I'm so confused, plz help me!!!!

mayank-git-hub commented 4 years ago

I believe you will have to downgrade your torch. torch earlier didn't support type Bool, so the code has been written in Byte type. I believe torch 1.1.0 should work.

FriedaSmith commented 4 years ago

Thank you very much. It's the issue of torch version.

mayank-git-hub commented 4 years ago

Glad to be of help!.