MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / conv3x3

Function conv3x3

pycontrast/networks/resnet_cmc.py:19–22  ·  view source on GitHub ↗

3x3 convolution with padding

(in_planes, out_planes, stride=1)

Source from the content-addressed store, hash-verified

17
18
19def conv3x3(in_planes, out_planes, stride=1):
20 "3x3 convolution with padding"
21 return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,
22 padding=1, groups=2, bias=False)
23
24
25class Normalize(nn.Module):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected