fix: fix kernel lut build issue
This commit is contained in:
@@ -121,13 +121,9 @@ class LutResolver(Resolver):
|
||||
diff = ccalc.unsigned_difference(item.circuit, value=item.value)
|
||||
# Since the LUT is sorted, values on each side only move further
|
||||
# from target as we advance. Once one side exceeds tolerance,
|
||||
# the rest of that side is guaranteed out of range — disable it.
|
||||
# the rest of that side is guaranteed out of range.
|
||||
if diff > request.tolerance:
|
||||
if go_left:
|
||||
left = -1
|
||||
else:
|
||||
right = len(lut)
|
||||
continue
|
||||
break
|
||||
|
||||
bucket.append(item.circuit)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user