k2-fsa / icefall

https://k2-fsa.github.io/icefall/
Apache License 2.0
792 stars 267 forks source link

fix issue in zipformer.py #1566

Closed yaozengwei closed 1 month ago

yaozengwei commented 1 month ago

This PR fix a "bug" in zipformer.py. Fortunately, since float(self.const_attention_rate) is 0 in eval mode, it did not cause any problem.