MCPcopy Create free account
hub / github.com/ICTMCG/FakeSV / forward

Method forward

code/models/trm.py:51–57  ·  view source on GitHub ↗
(self, z)

Source from the content-addressed store, hash-verified

49 self.eps = eps
50
51 def forward(self, z):
52 mean = z.mean(dim=-1, keepdim=True,)
53 std = z.std(dim=-1, keepdim=True,)
54 ln_out = (z - mean) / (std + self.eps)
55 ln_out = self.gamma * ln_out + self.beta
56
57 return ln_out
58
59
60class PosEncoding(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected