提交 13056b2f authored 作者: Pierre Luc Carrier's avatar Pierre Luc Carrier

Update description of optimizer

上级 b2cbd92b
...@@ -162,7 +162,9 @@ class AddDestroyHandler(gof.Optimizer): ...@@ -162,7 +162,9 @@ class AddDestroyHandler(gof.Optimizer):
class AddNoOutputFromInplace(gof.Optimizer): class AddNoOutputFromInplace(gof.Optimizer):
"""This optimizer adds to the fgraph a feature that will prevent outputs """This optimizer adds to the fgraph a feature that will prevent outputs
of a fgraph to be created by performing inplace operations on intermediary of a fgraph to be created by performing inplace operations on intermediary
variables. variables. This is useful when the outputs of the fgraph are preallocated
to prevent useless copying of the data. Currently, scan preallocates its
outputs
""" """
def add_requirements(self, fgraph): def add_requirements(self, fgraph):
super(AddNoOutputFromInplace, self).add_requirements(fgraph) super(AddNoOutputFromInplace, self).add_requirements(fgraph)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论