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] Fix the type of cmp statements in autodiff #8452

Merged
merged 2 commits into from
Dec 26, 2023
Merged

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented Dec 26, 2023

Issue: fixes #8444

The return type of cmp statements of tensors should be tensors of u1 instead of tensors of i32.

Sometimes the CFG detects that an AdStackLoadTopStmt and an AdStackLoadTopAdjStmt loading the same address. I don't know if this should happen, but it stops raising error if I don't eliminate the latter statement.

Copy link

netlify bot commented Dec 26, 2023

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit 3077ad5
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/658a9cab2961880008d1514d

Copy link
Contributor

@jim19930609 jim19930609 left a comment

Choose a reason for hiding this comment

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

LGTM

taichi/transforms/compile_to_offloads.cpp Outdated Show resolved Hide resolved
taichi/transforms/compile_to_offloads.cpp Outdated Show resolved Hide resolved
taichi/transforms/compile_to_offloads.cpp Outdated Show resolved Hide resolved
@bobcao3 bobcao3 merged commit fc1b05a into master Dec 26, 2023
28 checks passed
@lin-hitonami lin-hitonami deleted the fix-ad branch December 27, 2023 07:07
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.

Autograd assertion: stmt->ret_type == stmt->v->ret_type
3 participants