MCPcopy Create free account
hub / github.com/apache/singa / conv3x3

Function conv3x3

examples/cnn/model/resnet.py:27–36  ·  view source on GitHub ↗

3x3 convolution with padding

(in_planes, out_planes, stride=1)

Source from the content-addressed store, hash-verified

25
26
27def conv3x3(in_planes, out_planes, stride=1):
28 """3x3 convolution with padding"""
29 return layer.Conv2d(
30 in_planes,
31 out_planes,
32 3,
33 stride=stride,
34 padding=1,
35 bias=False,
36 )
37
38
39class BasicBlock(layer.Layer):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected