mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix bug where attn_mask was not passed in.
This commit is contained in:
parent
e9157535a4
commit
8ccd061051
@ -479,9 +479,9 @@ class Zipformer(EncoderInterface):
|
||||
|
||||
attn_mask = torch.logical_or(src_c > tgt_c,
|
||||
src_c < tgt_c - left_context_chunks)
|
||||
if __name__ == "__main__":
|
||||
if __name__ == "__main__" or random.random() < 0.1:
|
||||
logging.info(f"attn_mask = {attn_mask}")
|
||||
|
||||
return attn_mask
|
||||
|
||||
|
||||
def _whitening_schedule(x: float, ratio: float = 2.0) -> ScheduledFloat:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user