(input: Tensor, weight: nn.Parameter, *args, **kwargs)
| 240 | |
| 241 | @functools.wraps(f) |
| 242 | def wrapper(input: Tensor, weight: nn.Parameter, *args, **kwargs) -> Tensor: |
| 243 | if hasattr(weight, 'weight_quantized') and getattr(weight, 'weight_quantized'): |
| 244 | quantized_weight, quant_scale, quant_min = weight.deconcat(weight) |
| 245 | temp_dequantized_weight = weight.dequantizer.dequantize(quantized_weight.view(torch.uint8), quant_scale, |
| 246 | quant_min) |
| 247 | return f(input, temp_dequantized_weight, *args, **kwargs) |
| 248 | else: |
| 249 | return f(input, weight, *args, **kwargs) |
| 250 | |
| 251 | return wrapper |
| 252 |
nothing calls this directly
no test coverage detected