提交 ddc0e308 authored 作者: Harm de Vries's avatar Harm de Vries

opt

上级 016e474e
...@@ -62,7 +62,10 @@ def local_max_and_argmax(node): ...@@ -62,7 +62,10 @@ def local_max_and_argmax(node):
try: try:
axis = get_scalar_constant_value(node.inputs[1]) axis = get_scalar_constant_value(node.inputs[1])
except NotScalarConstantError: except NotScalarConstantError:
axis = node.inputs[1]
if not isinstance(axis, TensorConstant):
return False return False
axis = axis.data
new = CAReduce(scal.maximum, axis)(node.inputs[0]) new = CAReduce(scal.maximum, axis)(node.inputs[0])
return [new, None] return [new, None]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论