Skip to content

Improvements to pullback_function #21

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Oct 11, 2021
Merged

Conversation

sethaxen
Copy link
Member

This PR makes a few improvements to pullback_function while resolving #17:

  • move the workarounds for UniformScaling and AbstractMatrix to their own utility function _dot, with checks for necessary conditions
  • swap the arguments of _dot and use gradient so we don't need to adjoint, which will be faster when there's a faster version of gradient available.

@codecov-commenter
Copy link

Codecov Report

Merging #21 (97a2489) into master (3eb3fd1) will decrease coverage by 1.27%.
The diff coverage is 30.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
- Coverage   79.53%   78.26%   -1.28%     
==========================================
  Files           1        1              
  Lines         342      345       +3     
==========================================
- Hits          272      270       -2     
- Misses         70       75       +5     
Impacted Files Coverage Δ
src/AbstractDifferentiation.jl 78.26% <30.00%> (-1.28%) ⬇️

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 3eb3fd1...97a2489. Read the comment docs.

Copy link
Member

@mohamed82008 mohamed82008 left a comment

Choose a reason for hiding this comment

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

LGTM

@mohamed82008 mohamed82008 merged commit b4343f5 into JuliaDiff:master Oct 11, 2021
@mohamed82008
Copy link
Member

Thanks @sethaxen!

@sethaxen sethaxen deleted the vecpb branch October 11, 2021 10:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants