[MO, Common] Fix SplitConcatPairToInterpolateFusion transformation (#13286)
* [MO, Common] Fix SplitConcatPairToInterpolateFusion transformation It fixes a case when Split go with disconnected output port. For this case, this transformation must not be applied. Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com> * Fix grammar mistake in the comment * Remove ref_function from the test Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
This commit is contained in:
1 parent
cfba7f669c
commit
52cf4eacd1
3 files changed
+36
-1
No files matched your search
@@ -329,7 +329,11 @@ def reverse_bypass_infer(node, in_ports: List[int]):
|
||||
:param in_ports: input ports for which shape will be updated
|
||||
:return:
|
||||
"""
|
||||
assert node.is_out_port_connected(0)
|
||||
# WA: for cases when terminal Identity node has only output control dependency edges
|
||||
# For this case the graph is not correctly build because the Identity node goes
|
||||
# without Result node
|
||||
if node.out_port(0).disconnected():
|
||||
return
|
||||
|
||||
output_shape = node.out_port(0).data.get_shape()
|
||||
if output_shape is not None:
|
||||
|
||||
Reference in new issue
Block a user