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

handle dims properly in gradient of logsoftmax #148

Merged
merged 1 commit into from
Jan 3, 2020

Conversation

tanhevg
Copy link

@tanhevg tanhevg commented Dec 17, 2019

Original implementation was not passing dims to softmax

I picked this up when testing gradients for FluxML/Zygote.jl#425

@codecov-io
Copy link

codecov-io commented Dec 17, 2019

Codecov Report

Merging #148 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #148   +/-   ##
=======================================
  Coverage   74.86%   74.86%           
=======================================
  Files          24       24           
  Lines         768      768           
=======================================
  Hits          575      575           
  Misses        193      193
Impacted Files Coverage Δ
src/softmax.jl 27.02% <100%> (ø) ⬆️

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 136aa82...b651e95. Read the comment docs.

@MikeInnes
Copy link
Member

👍 Thanks!

@MikeInnes MikeInnes merged commit d71babf into FluxML:master Jan 3, 2020
bors bot added a commit to FluxML/Zygote.jl that referenced this pull request Jan 9, 2020
443: Handle dims keyword argument in softmax adjoint r=MikeInnes a=tanhevg

This PR depends on FluxML/NNlib.jl#148 being merged. Once that is done, `Manifest.toml` must be updated. Addresses #425.

Co-authored-by: Evgeny Tankhilevich <[email protected]>
Co-authored-by: tanhevg <[email protected]>
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.

3 participants