MCPcopy Create free account
hub / github.com/pytorch/executorch / __init__

Method __init__

backends/nxp/quantizer/patterns.py:747–753  ·  view source on GitHub ↗
(self, neutron_quantizer, is_qat: bool = False)

Source from the content-addressed store, hash-verified

745
746class 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]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected