提交 1f3b1d46 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

comment to clarify the R_op of sum

上级 0cca7c04
...@@ -1241,6 +1241,8 @@ class Sum(CAReduce): ...@@ -1241,6 +1241,8 @@ class Sum(CAReduce):
return Elemwise(scalar.second)(x, DimShuffle(gz.type.broadcastable, new_dims)(gz)), return Elemwise(scalar.second)(x, DimShuffle(gz.type.broadcastable, new_dims)(gz)),
def R_op(self, inputs, eval_points): def R_op(self, inputs, eval_points):
# There is just one element in inputs and eval_points, the axis are
# part of self
if None in eval_points: if None in eval_points:
return [None] return [None]
return self.make_node(*eval_points).outputs return self.make_node(*eval_points).outputs
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论