From 82c607c1ee95fc24d49f8770c43d582ba34ce2a1 Mon Sep 17 00:00:00 2001 From: Daniel Galvez Date: Fri, 17 May 2024 11:33:46 -0700 Subject: [PATCH] Fix RTFx calc Signed-off-by: Daniel Galvez --- examples/asr/transcribe_speech.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/asr/transcribe_speech.py b/examples/asr/transcribe_speech.py index e9a31508485a6..644ac60b31306 100644 --- a/examples/asr/transcribe_speech.py +++ b/examples/asr/transcribe_speech.py @@ -496,7 +496,7 @@ def autocast(dtype=None, enabled=True): logging.info(f"{total_res}") if cfg.calculate_rtfx: - logging.info(f"Dataset RTFx {(transcribe_time/total_duration):.2}") + logging.info(f"Dataset RTFx {(total_duration/transcribe_time)}") return cfg