Once you’ve unfolded the input and create the patches, you can create the filters in whatever way you have and apply them to the corresponding patch.
In the first part of my code you’ll get all patches, which are stacked in one dimension.
Thereafter you could either loop over the patches and apply the filters or try a batched approach.