forked from mindspore-Ecosystem/mindspore
fix elemany bug
This commit is contained in:
parent
e10ebf758e
commit
9fd93571b1
|
@ -1001,8 +1001,8 @@ class GraphSplitGpu(GraphSplitByPattern):
|
|||
return None
|
||||
|
||||
fused = []
|
||||
for a, _ in dom.in_relations.items():
|
||||
if a.pattern < PrimLib.BROADCAST and a.check_acyclic(dom):
|
||||
for a, r in dom.in_relations.items():
|
||||
if a.pattern < PrimLib.BROADCAST and r <= PrimLib.ELEMWISE and a.check_acyclic(dom):
|
||||
fused.append(a)
|
||||
|
||||
return fused, True
|
||||
|
|
Loading…
Reference in New Issue