()
| 149 | simple_graph = SimpleGraph(graph_def) |
| 150 | |
| 151 | def _get_pattern(): |
| 152 | pl = list() |
| 153 | pl.append(SimpleNode('quantize', 'QuantizeV2', ['dequantize', '0', '1'], ['0'])) |
| 154 | pl.append(SimpleNode('dequantize', 'Dequantize', ['2', '3', '4'], ['quantize'])) |
| 155 | pattern_nodes = {node.name: node for node in pl} |
| 156 | return pattern_nodes, pl[0].name |
| 157 | |
| 158 | pattern, first_key = _get_pattern() |
| 159 | ptm_list = util.get_matched_pattern(simple_graph, pattern, first_key) |
no test coverage detected