Skip to content

add Unthunk #64

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

Merged
merged 2 commits into from
Nov 28, 2019
Merged

add Unthunk #64

merged 2 commits into from
Nov 28, 2019

Conversation

oxinabox
Copy link
Member

@oxinabox oxinabox commented Nov 1, 2019

This swaps extern for unthunk
which just removes a layer of thunking,
rather than attempting to fully get from a differential to a primal

It is needed for #61 but is distrinct (that PR currently sits ontop of this one though)

Note that even in double thunking cases:
1+@thunk(@thunk(2)) becomes 1 + @thunk(2) becomes 1+2
so addition is still fine.

This also occurs in #54

@nickrobinson251
Copy link
Contributor

Let's do this

Copy link
Member

@simeonschaub simeonschaub left a comment

Choose a reason for hiding this comment

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

LGTM!

fix extra comma
@oxinabox
Copy link
Member Author

I am going to 0.5-DEV
aas will this likely isn't breaking I'm not completely sure it isn't

@oxinabox oxinabox merged commit 6c81169 into master Nov 28, 2019
@oxinabox oxinabox deleted the ox/unthunk branch November 28, 2019 15:04
YingboMa pushed a commit to YingboMa/ChainRulesCore.jl that referenced this pull request Dec 21, 2019
* add rules for complex util functions

* fix accidentally deleted line

* fix test cases
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