MCPcopy Create free account
hub / github.com/Sirwenhao/Deep-Learning-Notes / BasicConv2d

Class BasicConv2d

CV/Pytorch_classification/GoogleNet/model.py:156–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154
155
156class BasicConv2d(nn.Module):
157 def __init__(self, in_channels, out_channels, **kwargs):
158 super(BasicConv2d, self).__init__()
159 self.conv = nn.Conv2d(in_channels, out_channels, **kwargs)
160 self.relu = nn.ReLU(inplace=True)
161
162 def forward(self, x):
163 x = self.conv(x)
164 x = self.relu(x)
165 return x

Callers 3

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected