dabnn icon indicating copy to clipboard operation
dabnn copied to clipboard

To use xnor instead of xor

Open i-amgeek opened this issue 5 years ago • 2 comments

common/baseline.h : 103 and dabnn/bgemm.h :97, 104. Seems like you have implemented bitcount(xor) instead of bitcount(xnor). Or am I missing something here? And I also couldn't find where you are doing 2 p - n operation.

i-amgeek avatar Jul 04 '19 16:07 i-amgeek

Thanks for your issue!

You are right, arm neon only supports xor. The coefficients in the following batchnorm layer are modified to make the result correct. This step is done during model conversion, just like the "0 -> -1" correction described in https://github.com/JDAI-CV/dabnn/blob/master/docs/onnx2bnn.md

daquexian avatar Jul 05 '19 05:07 daquexian

I will update the document for this information soon.

daquexian avatar Jul 06 '19 04:07 daquexian