Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not pruning following network with two continuous convolution block #5

Open
anxu829 opened this issue Feb 25, 2021 · 1 comment

Comments

@anxu829
Copy link

anxu829 commented Feb 25, 2021

class StrangeNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv2d(3,256,kernel_size=3)
        self.bn = nn.BatchNorm2d(256,256)
        self.conv2_1 = nn.Conv2d(256,128  , kernel_size=3)
        self.conv2_2 = nn.Conv2d(128,128 , kernel_size=3 )
        self.bn2 = nn.BatchNorm2d(128 )

    def forward(self, x):
        x = self.conv1(x)
        x = self.bn(x)
        x = self.conv2_1(x)
        x = self.conv2_2(x)
        x = self.bn2(x)
        return x
@Sanster
Copy link
Owner

Sanster commented Sep 23, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants