Hi,
Thanks for your reply. What I am trying to prototype is replacing the adder/multiplier in the processor unit in CPU/GPU with approximated adders/multipliers which may have inaccurate results. The behaviors of these proposed adders/multipliers could be emulated using logic operations. So basically, I need to replace the "" and “+” in conv2d primitive with the function I wrote as follows:
y = ab+c;
-> y = approximate_add(approximate_mul(a,b),c);
I look at the unfold function, it seems that it will still need to call the primitive which will use the accurate adder/multiplier if I understand it correctly. Does this mean I may need to modify the source code for conv2d?
Thanks,
Di