Skip to content

Commit 89036ba

Browse files
committed
Use ChainRulesCore.NoTangent
1 parent e967389 commit 89036ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shapes.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function ChainRulesCore.rrule(::typeof(MGVI._uppertriang_to_vec), m::AbstractMat
4242
for j in 1:n
4343
pb_res[j, 1:j] .= x[j*(j-1)÷2+1:j*(j+1)÷2]
4444
end
45-
ChainRulesCore.NO_FIELDS, pb_res
45+
ChainRulesCore.NoTangent(), pb_res
4646
end
4747

4848
res, _uppertriang_to_vec_pullback

0 commit comments

Comments
 (0)