(node: torch.fx.Node)
| 101 | |
| 102 | |
| 103 | def is_dequant(node: torch.fx.Node) -> bool: |
| 104 | if node.op != "call_function": |
| 105 | return False |
| 106 | node_name = format_target_name(node.target.__name__) # pyre-ignore |
| 107 | |
| 108 | return node_name in _DQ_OPS |
| 109 | |
| 110 | |
| 111 | def is_per_channel(node: torch.fx.Node) -> bool: |