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 2018/11/08 20:13:09 UTC

[GitHub] ChaiBapchya opened a new issue #13187: Inconsistent return types of random_generator functions in cpu and gpu

ChaiBapchya opened a new issue #13187: Inconsistent return types of random_generator functions in cpu and gpu
URL: https://github.com/apache/incubator-mxnet/issues/13187
 
 
   The file - `/incubator-mxnet/include/mxnet/random_generator.h` includes CPU and GPU implementation of random number generator functions.
   
   Close look at `cpu` implementation
   ```
   MSHADOW_XINLINE FType uniform() {...}
   MSHADOW_XINLINE FType normal() {...}
   ```
   
   While in case of `gpu`
   ```
   MSHADOW_FORCE_INLINE __device__ float uniform() {...}
   MSHADOW_FORCE_INLINE __device__ float normal() {...}
   ```
   
   Why is it hardcoded in gpu? Shouldn't it be generic?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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