MCPcopy Create free account
hub / github.com/KohakuBlueleaf/LyCORIS / __init__

Method __init__

test/wrapper.py:107–111  ·  view source on GitHub ↗
(self, dim)

Source from the content-addressed store, hash-verified

105
106class FunLinearNetwork(nn.Module):
107 def __init__(self, dim):
108 super().__init__()
109 self.layer_norm = nn.LayerNorm(dim)
110 self.linear = nn.Linear(dim, dim)
111 self.act = nn.ReLU()
112
113 def forward(self, x):
114 x = self.layer_norm(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected