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

[TK] Refactor ShapedType out of KernelBuffer and Grid #479

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

Groverkss
Copy link
Contributor

@Groverkss Groverkss commented Feb 25, 2024

This patch moves out KernelBuffer and Grid into lang and creates a ShapedType/ShapedDataType class in _support/shaped_type which can be used elsewhere. This is in preparation for VectorType in TK.

This patch also does some other things:

  • Removes the string IndexExpr syntax for KernelBuffer/Grid, which I don't think was very useful.
  • Changes the syntax of KernelBufffer to include data type

@Groverkss
Copy link
Contributor Author

I'm happy to change the syntax of KernelBuffer back. I didn't know before looking at tests that it was possible to use .of

@Groverkss Groverkss merged commit 18262d4 into nod-ai:main Feb 26, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants