提交 df0dd2c1 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix warning in doc gen

上级 9177b679
...@@ -174,7 +174,7 @@ class InplaceElemwiseOptimizer(Optimizer): ...@@ -174,7 +174,7 @@ class InplaceElemwiseOptimizer(Optimizer):
def apply(self, fgraph): def apply(self, fgraph):
""" """
Usage: InplaceElemwiseOptimizer(OP).optimize(fgraph) Usage: InplaceElemwiseOptimizer(op).optimize(fgraph)
Attempts to replace all Broadcast ops by versions of them Attempts to replace all Broadcast ops by versions of them
that operate inplace. It operates greedily: for each Broadcast that operate inplace. It operates greedily: for each Broadcast
...@@ -184,8 +184,10 @@ class InplaceElemwiseOptimizer(Optimizer): ...@@ -184,8 +184,10 @@ class InplaceElemwiseOptimizer(Optimizer):
Examples Examples
-------- --------
x + y + z -> x += y += z
(x + y) * (x * y) -> (x += y) *= (x * y) or (x + y) *= (x *= y) `x + y + z -> x += y += z`
`(x + y) * (x * y) -> (x += y) *= (x * y) or (x + y) *= (x *= y)`
""" """
# We should not validate too often as this takes too much time to # We should not validate too often as this takes too much time to
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论