MCPcopy Create free account
hub / github.com/IgaoGuru/Sequoia / conv_block

Method conv_block

light_classifier.py:36–43  ·  view source on GitHub ↗
(self, c_in, c_out, dropout=0.1, kernel_size=3, stride=1, **kwargs)

Source from the content-addressed store, hash-verified

34 # self.prefc1 = nn.Linear(self.bigN, )
35
36 def conv_block(self, c_in, c_out, dropout=0.1, kernel_size=3, stride=1, **kwargs):
37 seq_block = nn.Sequential(
38 nn.Conv2d(in_channels=c_in, out_channels=c_out, kernel_size=kernel_size, **kwargs),
39 nn.BatchNorm2d(num_features=c_out),
40 nn.ReLU(),
41 # nn.Dropout2d(p=dropout)
42 )
43 return seq_block
44
45 def forward(self, x):
46 x = self.conv1(x)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected