Skip to content

Commit 61b425b

Browse files
committed
Fix frule for BLAS.nrm2
1 parent 3fe59b4 commit 61b425b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rulesets/LinearAlgebra/blas.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end
3535
##### `BLAS.nrm2`
3636
#####
3737

38-
function frule(::typeof(BLAS.nrm2), x, _, Δ)
38+
function frule(::typeof(BLAS.nrm2), x, _, Δx)
3939
Ω = BLAS.nrm2(x)
4040
return Ω, sum(Δx .* @thunk(x * inv(Ω)))
4141
end

0 commit comments

Comments
 (0)