Closed Justin1904 closed 5 years ago
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.
If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!
Hi, this looks good to me. Thanks for the PR!
Fixing a problem encountered here at #76
The problem that led to #76 is that when using methods other than invsm, the code re-assigns
n_src
withparams.dico_max_rank
here. Yetparams.dico_max_rank
can potentially be larger than the originaln_src
. This will lead to later indexing into an empty slice oncen_src < i < params.dico_max_rank
and trying to transpose it (here), causing the error eventually.