We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
norm
1 parent 3b3791f commit 29d8280Copy full SHA for 29d8280
src/rulesets/LinearAlgebra/norm.jl
@@ -4,7 +4,7 @@
4
5
function frule((_, Δx), ::typeof(norm), x)
6
y = norm(x)
7
- return y, _norm2_forward(x, Δx, norm(x))
+ return y, _norm2_forward(x, Δx, y)
8
end
9
10
function frule((_, ẋ), ::typeof(norm), x::Number, p::Real)
0 commit comments