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

Function conv3x3

TCP/resnet.py:26–29  ·  view source on GitHub ↗

3x3 convolution with padding

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

Source from the content-addressed store, hash-verified

24
25
26def conv3x3(in_planes: int, out_planes: int, stride: int = 1, groups: int = 1, dilation: int = 1) -> nn.Conv2d:
27 """3x3 convolution with padding"""
28 return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,
29 padding=dilation, groups=groups, bias=False, dilation=dilation)
30
31
32def conv1x1(in_planes: int, out_planes: int, stride: int = 1) -> nn.Conv2d:

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected