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

Function is_param_node

backends/vulkan/utils.py:185–194  ·  view source on GitHub ↗

Check if the given node is a parameter within the exported program

(program: ExportedProgram, node: torch.fx.Node)

Source from the content-addressed store, hash-verified

183
184
185def 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
197def is_mutable_buffer_node(

Callers 11

_get_bmm_replacementMethod · 0.90
is_graph_inputFunction · 0.90
annotateMethod · 0.90
define_tensorMethod · 0.90
get_tensor_typeFunction · 0.90
get_tensorFunction · 0.90
define_nodeMethod · 0.90
insert_prepack_nodesFunction · 0.90

Calls 1

is_get_attr_nodeFunction · 0.70

Tested by

no test coverage detected