Skip to content

Commit

Permalink
Fix for --scale-output with a zero final scale layer
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhanbsolak committed Dec 19, 2024
1 parent 1411cb1 commit b2992c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion izer/unload.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def mlator_loop(
out_text += '] = '
else:
out_text += f'{prefix} *out_buf++ = '
if scale_output:
if scale_output and final_scale[ll] != 0:
if shift == 0:
out_text += f'(int{o_width*2}_t)((val'
else:
Expand Down

0 comments on commit b2992c8

Please sign in to comment.