gnikh opened a new issue #8595: how to implement function like 
numpy.random.choice using ndarray?
URL: https://github.com/apache/incubator-mxnet/issues/8595
 
 
   I want to sample from some discrete elements, each of which with a given 
probability, like the function of numpy:
   numpy.random.choice(a, size=None, replace=True, **p=None**)
   
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.random.choice.html
   
   The sampling is one step of training on gpu, so I want to implement it using 
ndarray to avoid data copy between cpu and gpu.
   
    #Thanks.
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to