MCPcopy Create free account
hub / github.com/pytorch/executorch / is_param_node

Function is_param_node

backends/arm/_passes/arm_pass_utils.py:74–80  ·  view source on GitHub ↗
(exp_prog: ExportedProgram, node: torch.fx.Node)

Source from the content-addressed store, hash-verified

72
73
74def is_param_node(exp_prog: ExportedProgram, node: torch.fx.Node) -> bool:
75 return (
76 is_get_attr_node(node)
77 or is_param(exp_prog, node)
78 or is_buffer(exp_prog, node)
79 or is_lifted_tensor_constant(exp_prog, node)
80 )
81
82
83def get_constant_placeholder_kind(

Callers 3

_extract_input_paramsMethod · 0.90
callMethod · 0.90

Calls 1

is_get_attr_nodeFunction · 0.70

Tested by

no test coverage detected