Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
oxinabox and github-actions[bot] authored Dec 29, 2024
1 parent dc5006c commit b8ac8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rulesets/LinearAlgebra/norm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function rrule(::typeof(norm), x::Number, p::Real)
function norm_pullback(ȳ)
Δy = unthunk(ȳ)
∂x = if iszero(Δy) || iszero(p)
zero(x) * zero(real(Δy))
zero(x) * zero(real(Δy))
else
signx = x isa Real ? sign(x) : x * pinv(y)
signx * real(Δy)
Expand Down

0 comments on commit b8ac8b0

Please sign in to comment.