(
self, gm: fx.GraphModule, fused_partition: list[fx.GraphModule]
)
| 336 | return [torch.ops.aten.sub.Tensor] |
| 337 | |
| 338 | def get_anchors( |
| 339 | self, gm: fx.GraphModule, fused_partition: list[fx.GraphModule] |
| 340 | ) -> PartitionAnchors | None: |
| 341 | node = fused_partition[0].nodes[-1] |
| 342 | inputs = [(node, NodeArgsIdx(0))] |
| 343 | if len(fused_partition[0].input_nodes) == 2: |
| 344 | inputs = [(node, NodeArgsIdx(0)), (node, NodeArgsIdx(1))] |
| 345 | |
| 346 | return PartitionAnchors( |
| 347 | inputs=inputs, |
| 348 | weights=[], |
| 349 | biases=[], |
| 350 | output=[(node,)], |
| 351 | ) |
| 352 | |
| 353 | |
| 354 | class AvgPool1DPattern(SharedSpecPattern): |
nothing calls this directly
no test coverage detected