Closed zccyman closed 3 years ago
nn.conv2d is acclerated by using cuda and cudnn, which is defintely faster than the adder2d without cuda accleration.
@HantingChen Thanks! I want to know how many times the adder2d with cuda accleration faster than nn.conv2d ?
@HantingChen Thanks! I want to know how many times the adder2d with cuda accleration faster than nn.conv2d ?
Since the speed of 32bit multiplications and additions in GPU are almost the same, adder and conv will take almost the same time if with cuda accleration
@zccyman Do you have idea about using YOLOv3 together with AdderNet ?
I replace adder.adder2d with torch.nn.Conv2d, and replace torch.cdist with my_cdist. train my network, the speed of the new model slower than the old at least 6 times. I'm confused.