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

Method get_anchors

backends/nxp/quantizer/patterns.py:146–156  ·  view source on GitHub ↗
(
        self, gm: fx.GraphModule, fused_partition: list[fx.GraphModule]
    )

Source from the content-addressed store, hash-verified

144 pass
145
146 def get_anchors(
147 self, gm: fx.GraphModule, fused_partition: list[fx.GraphModule]
148 ) -> PartitionAnchors | None:
149 node = fused_partition[0].nodes[-1]
150
151 return PartitionAnchors(
152 inputs=[(node, NodeArgsIdx(0))],
153 weights=[],
154 biases=[],
155 output=[(node,)],
156 )
157
158
159class BatchNormPattern(QuantizationPattern):

Callers

nothing calls this directly

Calls 2

NodeArgsIdxClass · 0.85
PartitionAnchorsClass · 0.70

Tested by

no test coverage detected