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

Method _check_kwargs

backends/mlx/pattern_utils.py:191–193  ·  view source on GitHub ↗

Check that node's kwargs are all declared in self.kwargs (no unhandled kwargs).

(self, node: Node)

Source from the content-addressed store, hash-verified

189 return n >= self.nargs and n > self.arg_index
190
191 def _check_kwargs(self, node: Node) -> bool:
192 """Check that node's kwargs are all declared in self.kwargs (no unhandled kwargs)."""
193 return set(node.kwargs.keys()).issubset(self.kwargs)
194
195
196def walk_back( # noqa: C901

Callers 1

matchesMethod · 0.95

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected