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

Function is_param_node

backends/xnnpack/utils/utils.py:99–105  ·  view source on GitHub ↗
(exp_prog: ExportedProgram, node: torch.fx.Node)

Source from the content-addressed store, hash-verified

97
98
99def is_param_node(exp_prog: ExportedProgram, node: torch.fx.Node) -> bool:
100 return (
101 is_get_attr_node(node)
102 or is_param(exp_prog, node)
103 or is_buffer(exp_prog, node)
104 or is_lifted_tensor_constant(exp_prog, node)
105 )
106
107
108def get_param_tensor(

Callers 15

define_nodeMethod · 0.90
is_graph_inputMethod · 0.90
gen_ids_and_flagsMethod · 0.90
from_inputsMethod · 0.90
callMethod · 0.90
input_to_nhwcMethod · 0.90
input_to_nchwMethod · 0.90
can_fuseMethod · 0.90

Calls 1

is_get_attr_nodeFunction · 0.70

Tested by

no test coverage detected