提交 86ca1853 authored 作者: jklw's avatar jklw 提交者: Thomas Wiecki

Add missing "f" before format string (memory profiling)

上级 236a3dfe
...@@ -1402,7 +1402,7 @@ class ProfileStats: ...@@ -1402,7 +1402,7 @@ class ProfileStats:
shapes = str(fct_shapes[fgraph][node]) shapes = str(fct_shapes[fgraph][node])
if all(hasattr(out.type, "get_size") for out in node.outputs): 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: if node_outputs_size < config.profiling__min_memory_size:
N = idx N = idx
break break
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论