Returns true if the given node is a get attr node for a tensor of the model
(node: torch.fx.Node)
| 60 | |
| 61 | |
| 62 | def is_get_attr_node(node: torch.fx.Node) -> bool: |
| 63 | """ |
| 64 | Returns true if the given node is a get attr node for a tensor of the model |
| 65 | """ |
| 66 | return isinstance(node, torch.fx.Node) and node.op == "get_attr" |
| 67 | |
| 68 | |
| 69 | def is_param_node(exp_prog: ExportedProgram, node: torch.fx.Node) -> bool: |
no outgoing calls
no test coverage detected