Skip to content

Commit c731dfa

Browse files
fixup! fix: fix view adjoints
1 parent 79caf8d commit c731dfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/RecursiveArrayToolsZygoteExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ end
115115
adj = let VA = VA
116116
function Array_adjoint(y)
117117
VA = recursivecopy(VA)
118-
VA .= y
118+
copyto!(VA, y)
119119
return (VA,)
120120
end
121121
end

0 commit comments

Comments
 (0)