Returns true if the given node produces a SymInt value
(node: torch.fx.Node)
| 204 | |
| 205 | |
| 206 | def is_symint_node(node: torch.fx.Node) -> bool: |
| 207 | """ |
| 208 | Returns true if the given node produces a SymInt value |
| 209 | """ |
| 210 | if "val" not in node.meta: |
| 211 | return False |
| 212 | |
| 213 | if isinstance(node.meta["val"], torch.SymInt): |
| 214 | return True |
| 215 | |
| 216 | return False |
| 217 | |
| 218 | |
| 219 | def is_single_tensor_node(node: torch.fx.Node) -> bool: |
no outgoing calls
no test coverage detected