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] Refactor AutoDiff system and support for loops that carry mutable states #1285

Merged
merged 34 commits into from
Jun 20, 2020

Conversation

yuanming-hu
Copy link
Member

@yuanming-hu yuanming-hu commented Jun 19, 2020

Related issue = #581 #1274

I confirmed that all the difftaichi demos works now.

@xumingkuan a high-level design document of the new autodiff system (which I cannot make public now) is emailed to you. Hope that will make reviewing easier.

[Click here for the format server]


@yuanming-hu yuanming-hu requested a review from xumingkuan June 19, 2020 22:56
@yuanming-hu yuanming-hu changed the title [AutoDiff] Refactor AutoDiff system and support for loops that carries mutable states [AutoDiff] Refactor AutoDiff system and support for loops that carry mutable states Jun 19, 2020
@codecov
Copy link

codecov bot commented Jun 19, 2020

Codecov Report

Merging #1285 into master will decrease coverage by 0.36%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1285      +/-   ##
==========================================
- Coverage   85.09%   84.72%   -0.37%     
==========================================
  Files          18       18              
  Lines        3273     3274       +1     
  Branches      616      616              
==========================================
- Hits         2785     2774      -11     
- Misses        352      365      +13     
+ Partials      136      135       -1     
Impacted Files Coverage Δ
python/taichi/lang/ast_checker.py 71.83% <100.00%> (-16.75%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f1f445...b62337c. Read the comment docs.

Copy link
Contributor

@xumingkuan xumingkuan left a comment

Choose a reason for hiding this comment

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

LGTM! Just a few nits.

taichi/ir/basic_stmt_visitor.cpp Show resolved Hide resolved
taichi/transforms/auto_diff.cpp Show resolved Hide resolved
taichi/transforms/auto_diff.cpp Show resolved Hide resolved
taichi/transforms/auto_diff.cpp Show resolved Hide resolved
taichi/transforms/auto_diff.cpp Show resolved Hide resolved
taichi/transforms/auto_diff.cpp Outdated Show resolved Hide resolved
taichi/transforms/auto_diff.cpp Outdated Show resolved Hide resolved
taichi/transforms/auto_diff.cpp Show resolved Hide resolved
taichi/transforms/auto_diff.cpp Outdated Show resolved Hide resolved
taichi/transforms/compile_to_offloads.cpp Show resolved Hide resolved
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.

runtime [verify.cpp:basic_verify@39] stmt 5249 cannot have operand 4663
3 participants