Consider convolutional layers. They create filters and pass them through an input, according to its stride and padding parameters. The filter size is the kernel size.
Now, consider a new form of linear layer, like the convolutional layer. Each node is connected to a specific area in the image, like the kernel. Nodes look at sensing regions with ‘stride’ apart. I would like to create such a linear layer, not fully connected and very similar to a convolutional layer. How could I do it? Are there a library you could refer me to? Thank you,