Check if the given node is a parameter within the exported program
(program: ExportedProgram, node: torch.fx.Node)
| 183 | |
| 184 | |
| 185 | def is_param_node(program: ExportedProgram, node: torch.fx.Node) -> bool: |
| 186 | """ |
| 187 | Check if the given node is a parameter within the exported program |
| 188 | """ |
| 189 | return ( |
| 190 | is_get_attr_node(node) |
| 191 | or is_param(program, node) |
| 192 | or is_buffer(program, node) |
| 193 | or is_lifted_tensor_constant(program, node) |
| 194 | ) |
| 195 | |
| 196 | |
| 197 | def is_mutable_buffer_node( |
no test coverage detected