提交 1045a27a authored 作者: --global's avatar --global

Document default garbage collecting behavior in Scan

上级 560c8ce0
...@@ -492,7 +492,9 @@ Deactivating garbage collecting in Scan ...@@ -492,7 +492,9 @@ Deactivating garbage collecting in Scan
Deactivating the garbage collection for Scan can allow it to reuse memory Deactivating the garbage collection for Scan can allow it to reuse memory
between executions instead of always having to allocate new memory. This can between executions instead of always having to allocate new memory. This can
improve performance at the cost of increased memory usage. improve performance at the cost of increased memory usage. By default, Scan
reuses memory between iterations of the same execution but frees the memory
after the last iteration.
There are two ways to achieve this, using the Theano flag There are two ways to achieve this, using the Theano flag
``config.scan.allow_gc`` and setting it to False, or using the argument ``config.scan.allow_gc`` and setting it to False, or using the argument
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论