soft_get fix (#3662)

This commit is contained in:
Anton Chetverikov 2020-12-21 14:05:41 +03:00 committed by GitHub
parent a788c02c3d
commit 129a6553fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -441,7 +441,7 @@ def port_renumber(graph: Graph):
for node in graph.get_op_nodes():
base = 0
# we need to check operation type, if it is const op, we don't renumber out ports to count them from zero
if node.type != 'Const':
if node.soft_get('type') != 'Const':
for u, d in node.get_sorted_inputs():
d['in'] = base
base += 1