MCPcopy Create free account
hub / github.com/TEA-Lab/TwoByTwo / __init__

Method __init__

src/shape_assembly/models/decoder/MLPDecoder.py:13–21  ·  view source on GitHub ↗
(self, feat_dim, num_points)

Source from the content-addressed store, hash-verified

11
12class MLPDecoder(nn.Module):
13 def __init__(self, feat_dim, num_points):
14 super().__init__()
15 self.np = num_points
16 self.fc_layers = nn.Sequential(
17 nn.Linear(feat_dim * 2, num_points * 2),
18 nn.BatchNorm1d(num_points * 2),
19 nn.LeakyReLU(0.2),
20 nn.Linear(num_points * 2, num_points * 3),
21 )
22
23 def forward(self, x):
24 # x.shape: (bs,1024)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected