提交 3f8c2768 authored 作者: James Bergstra's avatar James Bergstra

op.py - added note on the semantics of the no_recycling argument to make_thunk

上级 db7d1387
......@@ -444,6 +444,12 @@ class Op(utils.object2, PureOp, CLinkerOp):
:param no_recycling: list of variables for which it is forbidden to
reuse memory allocated by a previous call.
:note: If the thunk consults the storage_map on every call, it is safe
for it to ignore the no_recycling argument, because elements of the
no_recycling list will have a value of None in the storage map. If
the thunk can potentially cache return values (like CLinker does),
then it must not do so for variables in the no_recycling list.
"""
logger = logging.getLogger('theano.Op')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论