MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / __init__

Method __init__

kokoro/modules.py:12–15  ·  view source on GitHub ↗
(self, in_dim, out_dim, bias=True, w_init_gain='linear')

Source from the content-addressed store, hash-verified

10
11class LinearNorm(nn.Module):
12 def __init__(self, in_dim, out_dim, bias=True, w_init_gain='linear'):
13 super(LinearNorm, self).__init__()
14 self.linear_layer = nn.Linear(in_dim, out_dim, bias=bias)
15 nn.init.xavier_uniform_(self.linear_layer.weight, gain=nn.init.calculate_gain(w_init_gain))
16
17 def forward(self, x):
18 return self.linear_layer(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected