From 526ff46b02ceffaaf705d6787b98603dfa753dce Mon Sep 17 00:00:00 2001 From: jklw <28952545+jklw@users.noreply.github.com> Date: Sat, 3 Jun 2023 03:10:54 +0200 Subject: [PATCH] Add missing "f" before format string (memory profiling) --- pytensor/compile/profiling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytensor/compile/profiling.py b/pytensor/compile/profiling.py index 1af2147acd..b23ccad3e7 100644 --- a/pytensor/compile/profiling.py +++ b/pytensor/compile/profiling.py @@ -1402,7 +1402,7 @@ def print_stats(stats1, stats2): shapes = str(fct_shapes[fgraph][node]) if all(hasattr(out.type, "get_size") for out in node.outputs): - size = "{node_outputs_size:9d}B" + size = f"{node_outputs_size:9d}B" if node_outputs_size < config.profiling__min_memory_size: N = idx break