Skip to content

Commit ea4d14d

Browse files
committed
Update comment
1 parent a043ba4 commit ea4d14d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/pullbacks/qr.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ function qr_pullback!(
111111
Md .= real.(Md)
112112
end
113113
mul!(ΔQ₁, Q₁, M, +1, 1)
114-
# bypass istriu check
114+
# bypass istriu check in LinearAlgebra's toplevel rdiv
115+
# which causes scalar indexing for GPU arrays.
116+
# TODO: revisit this if/when LinearAlgebra becomes more
117+
# sensible.
115118
ΔA₁ .+= LinearAlgebra._rdiv!(ΔQ₁, ΔQ₁, R₁₁')
116119
return ΔA
117120
end

0 commit comments

Comments
 (0)