Skip to content

Commit a404cdd

Browse files
committed
Fixed wrong check in qnn_partitioner
1 parent b50752f commit a404cdd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backends/qualcomm/partition/qnn_partitioner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def check_partitions(
207207
pl = len(partitions)
208208
if backend == QnnExecuTorchBackendType.kLpaiBackend:
209209
assert (
210-
pl != 1
210+
pl == 1
211211
), "LPAI backend only supports fully delegation due to the accuracy issue of Q/DQ in the LPAI backend."
212212
if pl == 0:
213213
logging.warning("Nothing can be partitioned!")

0 commit comments

Comments
 (0)