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

[lang] Added ti.u1 definition #7995

Merged
merged 3 commits into from
May 16, 2023
Merged

Conversation

listerily
Copy link
Contributor

@listerily listerily commented May 12, 2023

Summary

This PR added type u1 as a definition but not implementation.

This pull request adds support for boolean tensors in Taichi by introducing a new u1 data type and enabling conversions, operations, and code generation for it. It also updates the Python, C++, and graphics interfaces to handle the u1 type and improves the memory efficiency of boolean tensors. It modifies several files in the python, taichi, and taichi/runtime directories.

ghstack

Stack from ghstack (oldest at bottom):

[ghstack-poisoned]
listerily added a commit that referenced this pull request May 12, 2023
ghstack-source-id: 0898cae9cab2ea2c26f768aded91185c47ff5798
Pull Request resolved: #7995
@listerily listerily marked this pull request as draft May 12, 2023 08:55
listerily added a commit that referenced this pull request May 12, 2023
ghstack-source-id: 7560c53a29419a8aaacc4b0088637ab917d2a972
Pull Request resolved: #7995
Copy link
Contributor

@lin-hitonami lin-hitonami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@feisuzhu feisuzhu merged commit 20d43f6 into gh/listerily/2/base May 16, 2023
feisuzhu pushed a commit that referenced this pull request May 16, 2023
ghstack-source-id: ac52abfd5e136811d4a7f3b86d5b36362ed94f4f
Pull Request resolved: #7995
@feisuzhu feisuzhu deleted the gh/listerily/2/head branch May 16, 2023 03:36
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.

3 participants