MCPcopy Create free account
hub / github.com/NineAbyss/ZeroG / forward

Method forward

code/model.py:39–44  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

37 self.linears[-1].bias.data.fill_(0.0)
38
39 def forward(self, x):
40
41 for i in range(self.num_layer):
42 x = self.acts[i](self.linears[i](x))
43
44 return x
45
46
47class Encoder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected