MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / forward

Method forward

src/encoding/blocks.py:85–91  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

83 self.second_layers = nn.Sequential(*second_layer_list)
84
85 def forward(self, x):
86 if self.posenc > 0:
87 x = self.PE(x)
88 h = self.first_layers(x)
89 h = torch.cat([x, h], dim=-1)
90 h = self.second_layers(h)
91 return h
92
93
94class SiLU(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected