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