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

Method is_node_supported

exir/backend/operator_support.py:112–127  ·  view source on GitHub ↗
(self, submodules, node: fx.Node)

Source from the content-addressed store, hash-verified

110 self.used_dotted = "." in module_name if module_name else True
111
112 def is_node_supported(self, submodules, node: fx.Node) -> bool:
113 if "nn_module_stack" not in node.meta:
114 return True
115
116 for module_meta in node.meta["nn_module_stack"].values():
117 if _compare(self.exact, self.instance_name, module_meta[0]):
118 self.reject_node(node)
119 return False
120 node_module_name = module_meta[1]
121 if not self.used_dotted:
122 node_module_name = node_module_name.split(".")[-1]
123 if _compare(self.exact, self.module_name, node_module_name):
124 self.reject_node(node)
125 return False
126
127 return True

Callers

nothing calls this directly

Calls 4

_compareFunction · 0.85
valuesMethod · 0.80
reject_nodeMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected