MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / conv1x1

Function conv1x1

TCP/resnet.py:32–34  ·  view source on GitHub ↗

1x1 convolution

(in_planes: int, out_planes: int, stride: int = 1)

Source from the content-addressed store, hash-verified

30
31
32def conv1x1(in_planes: int, out_planes: int, stride: int = 1) -> nn.Conv2d:
33 """1x1 convolution"""
34 return nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False)
35
36
37class BasicBlock(nn.Module):

Callers 2

__init__Method · 0.85
_make_layerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected