Pytorch-XNOR-Net
Pytorch-XNOR-Net copied to clipboard
BinConv2D for group convolution
Dear @cooooorn ,
Thanks for your helpful implementation. I have 2 following concerns about class BinConv2d:
-
This line: self.weight = nn.Parameter(torch.IntTensor(out_channels, 1 + ( in_channels * self.kernel_size[0] * self.kernel_size[1] - 1) // 32)). Why do we divide 32 in testing process? I notice that the number of weights in testing is reduces by 32. Could you clarify that?
-
I want to use the group convolution. How can I modify for BinConv2d? Thank you very much.
Thanks, Hai