(self, neutron_quantizer, is_qat: bool = False)
| 745 | |
| 746 | class LinearPattern(QuantizationPattern): |
| 747 | def __init__(self, neutron_quantizer, is_qat: bool = False): |
| 748 | super().__init__(is_qat=is_qat) |
| 749 | |
| 750 | self.neutron_quantizer = neutron_quantizer |
| 751 | self.neutron_target_info = ( |
| 752 | self.neutron_quantizer.neutron_target_spec.neutron_target_info |
| 753 | ) |
| 754 | |
| 755 | def partition_types(self) -> list[OpOverload]: |
| 756 | return [torch.ops.aten.linear.default] |