From ceadfad48dc2e8cd2186a39591e8c69804d322de Mon Sep 17 00:00:00 2001 From: Daniel Povey Date: Thu, 22 Sep 2022 12:30:49 +0800 Subject: [PATCH] Reduce debug freq --- egs/librispeech/ASR/pruned_transducer_stateless7/scaling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless7/scaling.py b/egs/librispeech/ASR/pruned_transducer_stateless7/scaling.py index 96906b726..374a260e5 100644 --- a/egs/librispeech/ASR/pruned_transducer_stateless7/scaling.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless7/scaling.py @@ -178,7 +178,7 @@ class MaxEigLimiterFunction(torch.autograd.Function): ans_direction = direction + new_direction # ensure nonzero even if x == 0 ans_direction = ans_direction / ans_direction.norm() - if random.random() < 0.01: + if random.random() < 0.001: logging.info(f"variance_proportion = {variance_proportion.item()}") # Caution: this causes a CUDA sync, which is not ideal.