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

Function conv1x1

models/nets/resnet50.py:16–18  ·  view source on GitHub ↗

1x1 convolution

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

Source from the content-addressed store, hash-verified

14
15
16def conv1x1(in_planes: int, out_planes: int, stride: int = 1) -> nn.Conv2d:
17 """1x1 convolution"""
18 return nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False)
19
20
21class BasicBlock(nn.Module):

Callers 2

__init__Method · 0.85
_make_layerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected