From b8f07561332d7cce2718cc87f3d6bcd6c9b49dff Mon Sep 17 00:00:00 2001 From: Daniel Povey Date: Wed, 29 Mar 2023 14:05:28 +0800 Subject: [PATCH] Add comment --- egs/librispeech/ASR/pruned_transducer_stateless7/zipformer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless7/zipformer.py b/egs/librispeech/ASR/pruned_transducer_stateless7/zipformer.py index bfd88f825..fd8226cbc 100644 --- a/egs/librispeech/ASR/pruned_transducer_stateless7/zipformer.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless7/zipformer.py @@ -296,6 +296,9 @@ class Zipformer2(EncoderInterface): num_frames_max = (num_frames0 + max_downsampling_factor - 1) + # we divide the dropped-out feature dimensions into two equal groups; + # the first group is dropped out with this probability, the second + # group is dropped out with about twice this probability. feature_mask_dropout_prob = 0.125 # frame_mask_max1 shape: (num_frames_max, batch_size, 1)