You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/02/18 22:52:03 UTC

[GitHub] [incubator-mxnet] JonTanS commented on a change in pull request #17462: Updated PartialSortSmallK for LT support

JonTanS commented on a change in pull request #17462: Updated PartialSortSmallK for LT support
URL: https://github.com/apache/incubator-mxnet/pull/17462#discussion_r380983585
 
 

 ##########
 File path: src/operator/tensor/ordering_op-inl.h
 ##########
 @@ -362,7 +362,7 @@ MSHADOW_FORCE_INLINE void TopKSort(const Tensor<gpu, 1, DType>& dat,
     }
   } else {
     const int nthreads(mshadow::cuda::kBaseThreadNum);
-    PartialSortSmallK<<<M, nthreads, nthreads*K*(sizeof(int)+sizeof(DType)),
+    PartialSortSmallK<<<M, nthreads, nthreads*K*(sizeof(IType)+sizeof(DType)),
 
 Review comment:
   Is it okay if there's a slight memory regression after changing it to index_t? I think @apeforest wanted to decide whether to use int or index_t at runtime.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services