I wanna visualize filters from model.conv1 on the final epoch. Thanks. My CNN network looks like this.
class CNN(nn.Module):
def init(self):
super(CNN, self).init()
self.conv1 = nn.Conv2d(1, 40, 5, 1)
self.conv2 = nn.Conv2d(40, 80, 5, 1)
self.fc1 = nn.Linear(4480, 500)
self.fc2 = nn.Linear(500, 10)
def forward(self, x):
    x = F.relu(self.conv1(x))
    x = F.max_pool2d(x, 2, 2)
    x = F.relu(self.conv2(x))
    x = F.max_pool2d(x, 2, 2)
    x = x.view(-1,4*4*80)
    x = F.relu(self.fc1(x))
    x = self.fc2(x)
    return F.log_softmax(x, dim=1)