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

Function gen_decl

codegen/gen.py:383–384  ·  view source on GitHub ↗
(metadata: BackendMetadata, include_context: bool)

Source from the content-addressed store, hash-verified

381 # for kernels in lean mode, we declare two versions, one with context and one without.
382 # In the end we will cleanup the unused one.
383 def gen_decl(metadata: BackendMetadata, include_context: bool) -> str:
384 return f"{sig.decl(name=metadata.kernel, include_context=include_context)};"
385
386 return [
387 gen_decl(metadata, include_context)

Callers 1

Calls 1

declMethod · 0.80

Tested by

no test coverage detected