MCPcopy Create free account
hub / github.com/XLearning-SCU/2022-CVPR-DART / conv3x3

Function conv3x3

resnet.py:17–21  ·  view source on GitHub ↗

3x3 convolution with padding

(in_planes, out_planes, stride=1, dilation=1)

Source from the content-addressed store, hash-verified

15
16
17def conv3x3(in_planes, out_planes, stride=1, dilation=1):
18 """3x3 convolution with padding"""
19 # original padding is 1; original dilation is 1
20 return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,
21 padding=dilation, bias=False, dilation=dilation)
22
23
24class BasicBlock(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected