提交 1ec4bbc9 authored 作者: notoraptor's avatar notoraptor

Optimization corrected

上级 063fa257
......@@ -57,9 +57,8 @@ def local_max_and_argmax(node):
if len(node.outputs[1].clients) == 0:
# MaxAndArgmax support variable axis,
# but CAReduce support only constant axis.
# Axis il already constant in the new version of MaxAndArgmax.
axis = node.op.get_params(node)
if len(axis) != 1:
return False
new = CAReduce(scal.maximum, axis)(node.inputs[0])
return [new, None]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论