What’s a good way to access a convolutional filter (the learned weights) in the model?
Say you have a model in which you declared self.conv1 = nn.Conv2d(…
During training you want to print out the weights that it learns, or more specifically get one of the filters responsible for the feature maps.
edit: The filter in question nn.Conv2d(1, 1, 5, stride=1, padding=2, bias=False)