Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Less clever sum rrule for the default case
The sum rrule relies on broadcasting to figure out the result shape of the cotangent. However, this has two disadvantages: 1. We need to keep the original array around 2. Broadcasting machinery is complicated and tough on (higher-order) AD This adds a special case for `dims=:`, which simply stores the dimensions of the original array and uses `fill` in the pullback, which has a simple rrule and is thus much easier to AD.
- Loading branch information