JDAI-CV/dabnn

To use xnor instead of xor

i-amgeek opened this issue · 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.

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

I will update the document for this information soon.