Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple pretty-printer for KLR #21

Merged
merged 1 commit into from
Jan 22, 2025
Merged

A simple pretty-printer for KLR #21

merged 1 commit into from
Jan 22, 2025

Conversation

govereau
Copy link
Collaborator

This change adds two related things: a pretty-printer for KLR terms, and tensor names. Tensor names make the pretty printing nicer, but have a second purpose. By naming all of the tensors, we can scan a KLR kernel to collect up all of the input, output, and intermediate tensors that will be needed to run the kernel. For argument tensors, the generated tensor names are changed to the argument variable names; this is just for readability.

@govereau govereau added the enhancement New feature or request label Jan 21, 2025
@govereau govereau requested a review from seanmcl January 21, 2025 17:46
@govereau govereau self-assigned this Jan 21, 2025
@govereau govereau requested a review from jtristan as a code owner January 21, 2025 17:46
NKL/KLR/Basic.lean Show resolved Hide resolved
NKL/KLR/Encode.lean Show resolved Hide resolved
NKL/KLR/Pretty.lean Outdated Show resolved Hide resolved
NKL/Trace/Python.lean Outdated Show resolved Hide resolved
Base automatically changed from pg-trace to main January 22, 2025 14:03
This change adds two related things: a pretty-printer for KLR terms,
and tensor names. Tensor names make the pretty printing nicer, but
have a second purpose. By naming all of the tensors, we can scan a KLR
kernel to collect up all of the input, output, and intermediate
tensors that will be needed to run the kernel. For argument tensors,
the generated tensor names are changed to the argument variable names;
this is just for readability.
@govereau govereau merged commit 4a61978 into main Jan 22, 2025
1 check passed
@govereau govereau deleted the pg-pretty branch January 22, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants