Fix in model-optimizer/mo/back/ie_ir_ver_2/emitter.py. (#5742)

This commit is contained in:
Vladimir Gavrilov authored and GitHub committed 2021-05-21 18:58:03 +03:00
1 parent ee368fb828
commit 2bc69da1d1
1 file changed
+1 -1
@@ -227,7 +227,7 @@ def serialize_element(
if value is not None:
element.set(key, str(value))
serialize_node_attributes(graph, node, subelements, element, edges, unsupported)
if len(element.attrib) == 0 and len(element.getchildren()) == 0:
if len(element.attrib) == 0 and len(list(element)) == 0:
parent_element.remove(element)