We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b48db9 commit 022022aCopy full SHA for 022022a
exir/backend/canonical_partitioners/config_partitioner.py
@@ -193,9 +193,10 @@ def union(x, y):
193
continue
194
195
partition = node_config.get_partition(node, ep)
196
- parent[partition[0]] = partition[0]
197
- for i in range(1, len(partition)):
198
- union(partition[0], partition[i])
+ if len(partition) > 0:
+ parent[partition[0]] = partition[0]
+ for i in range(1, len(partition)):
199
+ union(partition[0], partition[i])
200
201
groups = {}
202
for node in parent.keys():
0 commit comments