(node: Node)
| 71 | |
| 72 | |
| 73 | def _is_float_activation_tensor(node: Node): |
| 74 | if not isinstance(node, Node): |
| 75 | return False |
| 76 | if "val" not in node.meta: |
| 77 | return False |
| 78 | if not isinstance(node.meta["val"], FakeTensor): |
| 79 | return False |
| 80 | return node.meta["val"].dtype == torch.float32 |
| 81 | |
| 82 | |
| 83 | def _annotate_fused_activation_pattern( |
no outgoing calls
no test coverage detected