MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / __init__

Method __init__

eval/models/ts/basic_blocks.py:17–26  ·  view source on GitHub ↗
(self, inc, outc, ks=3, stride=1, dilation=1)

Source from the content-addressed store, hash-verified

15
16class 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

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected