returns true if node is a torch.fx.Node, otherwise false
(node: Any)
| 41 | |
| 42 | |
| 43 | def is_node(node: Any) -> bool: |
| 44 | """ |
| 45 | returns true if node is a torch.fx.Node, otherwise false |
| 46 | """ |
| 47 | return isinstance(node, torch.fx.Node) |
| 48 | |
| 49 | |
| 50 | def is_getitem(node: torch.fx.Node) -> bool: |