提交 ccfeeb2a authored 作者: Frederic's avatar Frederic 提交者: Arnaud Bergeron

pep8

上级 9790a08e
......@@ -3473,7 +3473,7 @@ class Composite(ScalarOp):
# recusively, as the way the fusion optimizer work, we have
# only 1 new Composite each time at the output.
for i in inputs:
assert i not in outputs # This isn't supported, use identity
assert i not in outputs # This isn't supported, use identity
if len(outputs) > 1 or not any([isinstance(var.owner.op, Composite)
for var in outputs]):
# No inner Composite
......
......@@ -5940,9 +5940,9 @@ your code will run correctly, but may be slower.""")
s_new_out = node.op.scalar_op(*s_g, return_list=True)
try:
s_new_out[0].owner.op.c_code(s_new_out[0].owner,
"test_presence_of_c_code",
["x" for x in s_g],
["z" for x in s_new_out], {})
"test_presence_of_c_code",
["x" for x in s_g],
["z" for x in s_new_out], {})
except MethodNotDefined:
_logger.info(("%s does not implement the c_code function."
" As well as being potentially slow, this disables "
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论