提交 b4f8b4e0 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix syntax error.

上级 8685e8cb
...@@ -646,7 +646,7 @@ def get_scalar_constant_value(v): ...@@ -646,7 +646,7 @@ def get_scalar_constant_value(v):
# We put this check in case there is change in the future # We put this check in case there is change in the future
python_all(var.ndim == 0 for var in python_all(var.ndim == 0 for var in
v.owner.inputs[0].owner.inputs) and v.owner.inputs[0].owner.inputs) and
len(v.owner.op.idx_list) == 1 and len(v.owner.op.idx_list) == 1):
idx = v.owner.op.idx_list[0] idx = v.owner.op.idx_list[0]
if isinstance(idx, gof.Type): if isinstance(idx, gof.Type):
idx = get_scalar_constant_value(v.owner.inputs[1]) idx = get_scalar_constant_value(v.owner.inputs[1])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论