Skip to content

Commit

Permalink
Merge pull request #626 from Jutho/patch-1
Browse files Browse the repository at this point in the history
restrict strided array multiplication `rrule`
  • Loading branch information
oxinabox authored May 30, 2022
2 parents d0bcfc5 + 542abbf commit 3d381ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rulesets/Base/arraymath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ end
# https://github.com/JuliaDiff/ChainRulesCore.jl/issues/411
function rrule(
::typeof(*),
A::StridedMatrix{<:CommutativeMulNumber},
B::StridedVecOrMat{<:CommutativeMulNumber},
)
A::StridedMatrix{T},
B::StridedVecOrMat{T},
) where {T<:CommutativeMulNumber}
function times_pullback(ȳ)
= unthunk(ȳ)
dA = InplaceableThunk(
Expand Down

0 comments on commit 3d381ab

Please sign in to comment.