提交 6f2110ec authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Don't shadow function-level names.

上级 8aa47f83
...@@ -1630,10 +1630,10 @@ for(int i=0;i<PyArray_NDIM(%(iname)s);i++){ ...@@ -1630,10 +1630,10 @@ for(int i=0;i<PyArray_NDIM(%(iname)s);i++){
task1_code = self.scalar_op.c_code( task1_code = self.scalar_op.c_code(
Apply(self.scalar_op, Apply(self.scalar_op,
[get_scalar_type(dtype=input.type.dtype).make_variable() [get_scalar_type(dtype=iv.type.dtype).make_variable()
for input in (node.inputs * 2)], for iv in (node.inputs * 2)],
[get_scalar_type(dtype=output.type.dtype).make_variable() [get_scalar_type(dtype=ov.type.dtype).make_variable()
for output in node.outputs]), for ov in node.outputs]),
None, None,
["%s_i" % aname, "%s_i" % inames[0]], ["%s_i" % aname, "%s_i" % inames[0]],
["%s_i" % aname], ["%s_i" % aname],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论