Skip to content

Commit

Permalink
Fix RTFx calc
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Galvez <dgalvez@nvidia.com>
  • Loading branch information
galv committed May 17, 2024
1 parent 3caa051 commit 82c607c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/asr/transcribe_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}")

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable Error

Local variable 'transcribe_time' may be used before it is initialized.

return cfg

Expand Down

0 comments on commit 82c607c

Please sign in to comment.