analogdevicesinc / ai8x-synthesis

Quantization and Synthesis (Device Specific Code Generation) for ADI's MAX78000 and MAX78002 Edge AI Devices
Apache License 2.0
55 stars 49 forks source link

Fix shift calculation by considering biases #160

Closed MaximGorkem closed 3 years ago

MaximGorkem commented 3 years ago

Biases are used to be taken into consideration while calculating the factor but not in writing the out_shift. This commit fixes this.

MaximGorkem commented 3 years ago

Added another changed file to this PR. Existing version gives a wrong processor error in multipass cat operation.

MaximGorkem commented 3 years ago

Verification done, the new version works in both cifar100_qat_mixed and unet v7 with no accuracy difference with their QAT versions.