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

Method __init__

code/models/trm.py:45–49  ·  view source on GitHub ↗
(self, d_hid, eps=1e-6)

Source from the content-addressed store, hash-verified

43
44class LayerNormalization(nn.Module):
45 def __init__(self, d_hid, eps=1e-6):
46 super(LayerNormalization, self).__init__()
47 self.gamma = nn.Parameter(torch.ones(d_hid))
48 self.beta = nn.Parameter(torch.zeros(d_hid))
49 self.eps = eps
50
51 def forward(self, z):
52 mean = z.mean(dim=-1, keepdim=True,)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected