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

Method __init__

k_diffusion/models/modules.py:156–158  ·  view source on GitHub ↗
(self, in_features, out_features, bias=True)

Source from the content-addressed store, hash-verified

154
155class LinearGEGLU(nn.Linear):
156 def __init__(self, in_features, out_features, bias=True):
157 super().__init__(in_features, out_features * 2, bias=bias)
158 self.out_features = out_features
159
160 def forward(self, x):
161 flops.op(flops.op_linear, x.shape, self.weight.shape)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected