Method
__init__
(self, inc, outc, ks=3, stride=1, dilation=1)
Source from the content-addressed store, hash-verified
| 15 | |
| 16 | class BasicConvolutionBlock(nn.Module): |
| 17 | def __init__(self, inc, outc, ks=3, stride=1, dilation=1): |
| 18 | super().__init__() |
| 19 | self.net = nn.Sequential( |
| 20 | spnn.Conv3d( |
| 21 | inc, |
| 22 | outc, |
| 23 | kernel_size=ks, |
| 24 | dilation=dilation, |
| 25 | stride=stride), spnn.BatchNorm(outc), |
| 26 | spnn.ReLU(True)) |
| 27 | |
| 28 | def forward(self, x): |
| 29 | out = self.net(x) |
Callers
nothing calls this directly
Tested by
no test coverage detected