提交 3ad69371 authored 作者: Frederic Bastien's avatar Frederic Bastien

removed useless check as this was done before.

上级 8b6e8b23
...@@ -1267,12 +1267,6 @@ def local_elemwise_fusion(node): ...@@ -1267,12 +1267,6 @@ def local_elemwise_fusion(node):
do_fusion=False do_fusion=False
if do_fusion: if do_fusion:
if len(i.clients)>1:
#should we put this in the first if, then we would go to the elif to don't fuse it?
#if one of the inputs have more then 1 clients and it is an intermediate result. We don't fuse.
print "local_elemwise_fusion: Elemwise inputs have more then 1 client. Don't optimise for now"
return False
nb_elemwise+=1 nb_elemwise+=1
inputs.extend(i.owner.inputs) inputs.extend(i.owner.inputs)
s_inputs.extend(s_input) s_inputs.extend(s_input)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论