提交 f97fc466 authored 作者: Frederic's avatar Frederic

Update docstring.

上级 74ac72b7
......@@ -2865,6 +2865,7 @@ register_canonicalize(local_neg_to_mul)
@gof.local_optimizer([])
def local_sum_mul_by_scalar(node):
"""sum(scalar * smth) -> scalar * sum(smth)
sum(-smth) -> -sum(smth)
"""
# TODO: if the the thing inside the Sum is a division,
# we should get at the numerator....
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论