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

Method __init__

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

Source from the content-addressed store, hash-verified

127
128class ConvGEGLU(nn.Module):
129 def __init__(self, in_features, out_features, kernel_size, bias=True):
130 super().__init__()
131 self.conv = torch.nn.Conv2d(in_features,
132 out_features*2,
133 kernel_size=kernel_size,
134 padding=kernel_size//2,
135 bias=bias)
136
137 def forward(self, x):
138 x=self.conv(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected