Skip to content

Commit

Permalink
Merge branch 'develop' into hptq
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximGorkem authored Aug 29, 2024
2 parents d46edef + e174459 commit a80469d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion izer/kernels.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###################################################################################################
# Copyright (C) 2019-2023 Maxim Integrated Products, Inc. All Rights Reserved.
# Copyright (C) 2019-2024 Maxim Integrated Products, Inc. All Rights Reserved.
#
# Maxim Integrated Products, Inc. Default Copyright Notice:
# https://www.maximintegrated.com/en/aboutus/legal/copyrights.html
Expand Down Expand Up @@ -134,7 +134,14 @@ def check_kernel_mem(

with console.Progress(start=True) as progress:
task0 = progress.add_task(description='Arranging weights...', total=layers-start_layer)
start_range = []
end_range = []
for ll in range(start_layer, layers):
if processor_map[ll] == 0xffffffffffffffff:
start_range.append(ll)
else:
end_range.append(ll)
for ll in start_range + end_range:
if operator[ll] == op.NONE or bypass[ll] or kernel[ll] is None:
assert kern_len[ll] == 0
assert kern_offs[ll] == start_offs
Expand Down

0 comments on commit a80469d

Please sign in to comment.