leleamol commented on issue #13770: mxnet.ndarray.random_randint API not found URL: https://github.com/apache/incubator-mxnet/issues/13770#issuecomment-451559968 I have tried the latest mxnet and mxnet-cu90 pip packages on fresh cpu and gpu machines. The code is working as expected. Please disregard my comment about failure with the latest nightly package. ``` Successfully installed mxnet-cu90-1.5.0b20190103 numpy-1.14.6 requests-2.21.0 ubuntu@ip-172:~$ python Python 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mxnet as mx >>> from mxnet import ndarray >>> a = mx.nd.random.randint(5,200) >>> a [66] <NDArray 1 @cpu(0)> >>> a = mx.nd.random.randint(5,200, ctx=mx.gpu(0)) >>> a [85] <NDArray 1 @gpu(0)> >>> ``` As I mentioned above the randint() functionality is not available in the released version (1.3.1) of MxNet. I will remove the label "Bug" since it is working with the latest builds. I would propose to close this issue if it answers @myairforce1 's question.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
