Skip to content

Commit

Permalink
Update compressions.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
lpawela committed Oct 30, 2020
1 parent 914b9a6 commit 76bb469
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cuda/compressions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,9 @@ end
function _truncate_qr(F::CuQR, Dcut::Int)
Q, R = F
Q = CuMatrix(Q)
@show typeof(Q)
@show typeof(R)
c = min(Dcut, size(Q, 2))
Q = Q[:, 1:c]
R = R[1:c, :]
@show typeof(Q)
@show typeof(R)
_qr_fix!(Q, R)
end

Expand All @@ -130,4 +126,4 @@ function _qr_fix!(Q::CuMatrix, R::CuMatrix)
Q[:, i] .*= ph[i]
end
Q
end
end

0 comments on commit 76bb469

Please sign in to comment.