This is what the graph of a simple add op looks like: add_tensor = torch.ops.aten.add.Tensor(arg0_1, arg1_1); arg0_1 = arg1_1 = None
(partitions, quant_config)
| 15 | |
| 16 | |
| 17 | def _annotate_flatten(partitions, quant_config): |
| 18 | """ |
| 19 | This is what the graph of a simple add op looks like: |
| 20 | add_tensor = torch.ops.aten.add.Tensor(arg0_1, arg1_1); arg0_1 = arg1_1 = None |
| 21 | """ |
| 22 | flatten_node = partitions[0].output_nodes[0] |
| 23 | flatten_input = flatten_node.args[0] |
| 24 | |
| 25 | if _nodes_are_annotated([flatten_node]): |
| 26 | return |
| 27 | |
| 28 | _annotate_nodes( |
| 29 | [(flatten_node, flatten_input)], quant_config.input_quant_spec, input_node=True |
| 30 | ) |
| 31 | _annotate_nodes([(flatten_node,)], quant_config.output_quant_spec) |
| 32 | |
| 33 | |
| 34 | @dataclass |
nothing calls this directly
no test coverage detected