MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / KernelReplacement

Class KernelReplacement

verify.py:63–69  ·  view source on GitHub ↗

Describes a single kernel replacement: what to replace and with what.

Source from the content-addressed store, hash-verified

61
62@dataclass
63class KernelReplacement:
64 """Describes a single kernel replacement: what to replace and with what."""
65 kernel_type: str # e.g. "matmul", "layernorm", "rmsnorm"
66 rank: int # priority rank from profiling
67 speedup: float # individual kernel speedup
68 optimized_path: str # path to optimized kernel .py file
69 module_fn: Optional[Callable] = None # loaded kernel function
70
71
72@dataclass

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected