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] Calculate dynamic indexing strides of matrix field elements #3854

Merged
merged 2 commits into from
Dec 23, 2021

Conversation

strongoier
Copy link
Contributor

Related issue = close #3810

This PR implements the algorithm in #3810, and the result stride is stored in dynamic_index_stride of MatrixField instances. The tests cover both valid (the example in #3810) and invalid cases. path_from_root() is added to the SNode class by the way.

@netlify
Copy link

netlify bot commented Dec 22, 2021

✔️ Deploy Preview for jovial-fermat-aa59dc canceled.

🔨 Explore the source changes: 2560784

🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/61c2fc342a5c0f0007d5f5ae

@strongoier
Copy link
Contributor Author

/format

Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

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

Cool!

@strongoier strongoier merged commit fe30d36 into taichi-dev:master Dec 23, 2021
@strongoier strongoier deleted the dyn-idx-tensor-field branch December 23, 2021 02:33
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.

[RFC] Algorithm for identifying the cases where dynamic indexing can be turned into pointer + offset
3 participants