(self, weight=None, bias=None, device=None)
| 27 | """Compressed Linear Layer.""" |
| 28 | |
| 29 | def __init__(self, weight=None, bias=None, device=None): |
| 30 | super().__init__() |
| 31 | self.weight = weight |
| 32 | self.bias = bias |
| 33 | |
| 34 | def forward(self, input): |
| 35 | return F.linear(input.to(self.weight.dtype), self.weight, self.bias) |
nothing calls this directly
no outgoing calls
no test coverage detected