From 6ad822e3b03bad488c7240ee7e38686eb6e471ae Mon Sep 17 00:00:00 2001 From: Hugo Vergnes Date: Wed, 28 Jan 2026 22:10:01 -0800 Subject: [PATCH] fix formatting for values <1000 --- fvcore/nn/print_model_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fvcore/nn/print_model_statistics.py b/fvcore/nn/print_model_statistics.py index d4657e9..bc029d5 100644 --- a/fvcore/nn/print_model_statistics.py +++ b/fvcore/nn/print_model_statistics.py @@ -49,7 +49,7 @@ def fmt(x: float) -> str: return fmt(x / 1e6) + "M" if abs(x) > 1e2: return fmt(x / 1e3) + "K" - return str(x) + return fmt(x) def _pretty_statistics(