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

Function is_param_node

backends/transforms/utils.py:69–75  ·  view source on GitHub ↗
(exp_prog: ExportedProgram, node: torch.fx.Node)

Source from the content-addressed store, hash-verified

67
68
69def is_param_node(exp_prog: ExportedProgram, node: torch.fx.Node) -> bool:
70 return (
71 is_get_attr_node(node)
72 or is_param(exp_prog, node)
73 or is_buffer(exp_prog, node)
74 or is_lifted_tensor_constant(exp_prog, node)
75 )
76
77
78def get_param_tensor(

Callers 1

can_fuseMethod · 0.90

Calls 1

is_get_attr_nodeFunction · 0.70

Tested by

no test coverage detected