(
self, gm: fx.GraphModule, fused_partition: list[fx.GraphModule]
)
| 287 | return [torch.ops.aten.add.Tensor] |
| 288 | |
| 289 | def get_anchors( |
| 290 | self, gm: fx.GraphModule, fused_partition: list[fx.GraphModule] |
| 291 | ) -> PartitionAnchors | None: |
| 292 | node = fused_partition[0].nodes[-1] |
| 293 | inputs = [(node, NodeArgsIdx(0))] |
| 294 | if len(fused_partition[0].input_nodes) == 2: |
| 295 | inputs = [(node, NodeArgsIdx(0)), (node, NodeArgsIdx(1))] |
| 296 | |
| 297 | return PartitionAnchors( |
| 298 | inputs=inputs, |
| 299 | weights=[], |
| 300 | biases=[], |
| 301 | output=[(node,)], |
| 302 | ) |
| 303 | |
| 304 | |
| 305 | class BMMPattern(QuantizationPattern): |
nothing calls this directly
no test coverage detected