Skip to content

Commit f854821

Browse files
committed
A little Mooncake cleanup
1 parent 5d4c18e commit f854821

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

ext/MatrixAlgebraKitMooncakeExt/MatrixAlgebraKitMooncakeExt.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,15 @@ for (f!, f, pb, adj) in (
5353
dA .= ΔA
5454
end
5555
if A === arg1
56-
copy!(A, Ac)
5756
zero!(darg2)
58-
copy!(arg2, arg2c)
5957
elseif A === arg2
60-
copy!(A, Ac)
6158
zero!(darg1)
62-
copy!(arg1, arg1c)
6359
else
6460
zero!(darg1)
6561
zero!(darg2)
66-
copy!(arg2, arg2c)
67-
copy!(arg1, arg1c)
6862
end
63+
copy!(arg2, arg2c)
64+
copy!(arg1, arg1c)
6965
return ntuple(Returns(NoRData()), 4)
7066
end
7167
return args_dargs, $adj

0 commit comments

Comments
 (0)