I found a code and I don't understand these lines :
self.key_conv = nn.Conv2d(in_channels, out_channels, kernel_size=1, bias=bias)
k_out = self.key_conv(padded_x)
k_out = k_out.unfold(2, self.kernel_size, self.stride).unfold(3, self.kernel_size, self.stride)
of course, these codes are not Continuous and they are part of code.
my question is about unfold
function, this function whats doing exactly and whats meaning unfold().unfold()
?
thanks a lot for your attention.