MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / __init__

Method __init__

modules/networks.py:55–61  ·  view source on GitHub ↗
(self, in_features, out_features, bias=True)

Source from the content-addressed store, hash-verified

53
54class LinearWN_v2(torch.nn.Linear):
55 def __init__(self, in_features, out_features, bias=True):
56 super(LinearWN_v2, self).__init__(in_features, out_features, bias)
57 self.g = torch.nn.Parameter(torch.ones(out_features))
58
59
60 self.in_features=in_features
61 self.out_features=out_features
62
63 def forward(self, input):
64 w= torch._weight_norm(self.weight, self.g, 0)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected