Method
__init__
(self, in_features, out_features, kernel_size, bias=True)
Source from the content-addressed store, hash-verified
| 127 | |
| 128 | class 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
Tested by
no test coverage detected