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

Function conv1x1

pycontrast/networks/resnet.py:35–37  ·  view source on GitHub ↗

1x1 convolution

(in_planes, out_planes, stride=1)

Source from the content-addressed store, hash-verified

33
34
35def conv1x1(in_planes, out_planes, stride=1):
36 """1x1 convolution"""
37 return nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False)
38
39
40class BasicBlock(nn.Module):

Callers 2

__init__Method · 0.85
_make_layerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected