From 6873aa1a13e3bf94830e25fccfcf74da63cc7d9d Mon Sep 17 00:00:00 2001 From: Daniel Povey Date: Fri, 17 Jun 2022 15:35:07 +0800 Subject: [PATCH] Bug fix to print statement --- egs/librispeech/ASR/pruned_transducer_stateless7/optim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless7/optim.py b/egs/librispeech/ASR/pruned_transducer_stateless7/optim.py index 2f3da88e5..aab3f1bf1 100644 --- a/egs/librispeech/ASR/pruned_transducer_stateless7/optim.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless7/optim.py @@ -710,7 +710,7 @@ class NeutralGradient(Optimizer): # Roundoff can cause significant differences, so use a fairly large # threshold of 0.001. We may increase this later or even remove the check. if not C_diff.abs().mean() < 0.01 * C.diag().mean(): - print("Warning: large C_diff: {C_diff.abs().mean()}, C diag mean: {C.diag().mean()}") + print(f"Warning: large C_diff: {C_diff.abs().mean()}, C diag mean: {C.diag().mean()}") return P