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

[autodiff] Handle field accessing by zero for forward mode #5339

Merged
merged 5 commits into from
Jul 7, 2022

Conversation

erizmr
Copy link
Contributor

@erizmr erizmr commented Jul 6, 2022

Related issue = #5055
To handle the case similar to ti.root.dense(ti.i, 1).place(a, b, a.dual, b.dual). In this case, the field shape is one but not none comparing to a = ti.field(float, shape=()).

@netlify
Copy link

netlify bot commented Jul 6, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 0c4a825
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/62c5a802ab33f700096a3ea3
😎 Deploy Preview https://deploy-preview-5339--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@erizmr erizmr requested a review from ailzhang July 6, 2022 07:05
@erizmr erizmr requested a review from ailzhang July 6, 2022 09:36
Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

LGTM!

@ailzhang ailzhang merged commit ed9fc31 into taichi-dev:master Jul 7, 2022
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