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

Commit

Permalink
Add comments and fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudh2290 committed Dec 5, 2017
1 parent 362af57 commit a1b3db0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/python/sparse/dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def run_benchmark(ctx=None, lhs="csr", lhs_trans=False, rhs="dns", fw="mxnet", r
distribution="uniform"):

if rhs_density > 1 or rhs_density < 0:
raise ValueError("Value other than csr for lhs not supported")
raise ValueError("rhs_density has to be between 0 and 1")

print_benchmark_info(lhs, rhs, lhs_trans, fw)

Expand Down
2 changes: 2 additions & 0 deletions src/operator/tensor/dot-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ struct DotCsrTransRspRspByRowBlocks {
/*!
* \brief CPU Kernel of PopulateCsrForNNC
* Parallelization by individual rows
* Populates the indptr and indices array
* based on number of non zero columns
*/
struct PopulateCsrForNNC {
/*!
Expand Down

0 comments on commit a1b3db0

Please sign in to comment.