MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / conv3x3

Function conv3x3

models/nets/resnet50.py:10–13  ·  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

8
9
10def conv3x3(in_planes: int, out_planes: int, stride: int = 1, groups: int = 1, dilation: int = 1) -> nn.Conv2d:
11 """3x3 convolution with padding"""
12 return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,
13 padding=dilation, groups=groups, bias=False, dilation=dilation)
14
15
16def 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