Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
add comments for the tricky block matrix multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan committed Sep 2, 2019
1 parent c9e9779 commit 1a97e58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/operator/numpy/linalg/np_gesvd-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ struct gesvd_backward {

// G3:
gemm::op(tempM, V, dA, DType(1.0), DType(1.0), false, false, s);
// dA <- dot(UT, dA). Loop over (k, m, m) blocks to avoid large temporary memory
for (int i = 0; i < n; i += m) {
int ncols = n - i < m ? n - i : m;
Tensor<xpu, 3, DType> t = Tensor<xpu, 3, DType>(dA.dptr_ + i,
Expand Down

0 comments on commit 1a97e58

Please sign in to comment.