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

Tao ad #130

Merged
merged 4 commits into from
Sep 19, 2023
Merged

Tao ad #130

merged 4 commits into from
Sep 19, 2023

Conversation

fsxbhyy
Copy link
Collaborator

@fsxbhyy fsxbhyy commented Sep 17, 2023

Add front propagation Auto differentiation.
Add function that counts total number of "*" and "+" in a tree.

@fsxbhyy fsxbhyy added the enhancement New feature or request label Sep 17, 2023
@fsxbhyy fsxbhyy self-assigned this Sep 17, 2023
@codecov-commenter
Copy link

codecov-commenter commented Sep 17, 2023

Codecov Report

Patch coverage: 95.93% and project coverage change: +3.48% 🎉

Comparison is base (6acd9f7) 56.24% compared to head (cb96519) 59.73%.
Report is 3 commits behind head on computgraph.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@               Coverage Diff               @@
##           computgraph     #130      +/-   ##
===============================================
+ Coverage        56.24%   59.73%   +3.48%     
===============================================
  Files               55       55              
  Lines             3339     3340       +1     
===============================================
+ Hits              1878     1995     +117     
+ Misses            1461     1345     -116     
Files Changed Coverage Δ
src/computational_graph/ComputationalGraph.jl 100.00% <ø> (ø)
src/computational_graph/eval.jl 88.23% <87.50%> (+88.23%) ⬆️
src/computational_graph/operation.jl 96.47% <96.20%> (+96.47%) ⬆️
src/computational_graph/graph.jl 87.83% <100.00%> (+0.97%) ⬆️
src/computational_graph/tree_properties.jl 88.88% <100.00%> (+4.88%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

# Arguments:
- `g::Graph`: graph for which to find the total number of operations.
"""
function totaloperation(g::Graph)
Copy link
Member

Choose a reason for hiding this comment

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

rename to count_operation?


# #@inline eval(d::DiagramId) = error("eval for $d has not yet implemented!")
# #
function evalGraph!(g::Graph)
Copy link
Member

Choose a reason for hiding this comment

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

rename evalGraph! -> eval!

Copy link
Member

Choose a reason for hiding this comment

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

passing an additional vector "leaf" which contains the leaf weight.

eval! should have the same behavior as the compiled function

@fsxbhyy fsxbhyy merged commit dddf242 into computgraph Sep 19, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants