-
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utilize ChainRulesCore thunks (#966)
* Don't force unthunking of ChainRulesCore thunks Introduces @_adjoint_keepthunks to mark adjoints that should pass chunks through. * Use @_adjoint_keepthunks where appropriate * Use wrap_chainrules_output in unthunk_tangent * Fix unthunk_tangent for array of thunks * Don't unthunk explicitly in unbroadcast * Define unthunk_tangent for IdDict to support Params * Make unthunk_tangent for IdDict non-differentiable Co-authored-by: Brian Chen <ToucheSir@users.noreply.github.com> * Revert "Don't unthunk explicitly in unbroadcast" This reverts commit 34865ea. * Fix problems related to unthunk_tangent for IdDict Co-authored-by: Brian Chen <ToucheSir@users.noreply.github.com> * Resolve duplicate rrule for unthunk_tangent with IdDict * Make unthunk_tangent recurse into arrays * Fix tests * Unthunk in collect(::Generator) * Update deps * Disable thunks for 2nd order AD * Temporary use fork of CRC * Remove hook * Fix * Cleanup * Up deps * Cleanup * Remove extra unthunk_tangent --------- Co-authored-by: Brian Chen <ToucheSir@users.noreply.github.com> Co-authored-by: Anton Smirnov <tonysmn97@gmail.com>
- Loading branch information
1 parent
bc6cd09
commit d1aa910
Showing
10 changed files
with
82 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -269,5 +269,4 @@ end | |
@test sgs[d.b] ≈ fill(1.f0, size(d.b)) | ||
end | ||
|
||
|
||
end |