Expand description
PyTorch kernel extraction — reads Python source, extracts equations.
Parses docstrings for LaTeX math, extracts preconditions from type hints and assertions, and generates YAML contract skeletons.
Structs§
- Extracted
Equation - Extracted equation from
PyTorchsource. - Extracted
Kernel - Extracted kernel from a
PyTorchsource file.
Functions§
- extract_
from_ pytorch - Extract a kernel from a
PyTorchPython source file. - kernel_
to_ yaml - Generate YAML contract from extracted kernel.