xidulu commented on issue #17412: certain sample_ ops hanging with random_normal input URL: https://github.com/apache/incubator-mxnet/issues/17412#issuecomment-578372146 @connorgoggins You could find the constraint in the docstring of python frontend. https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/ndarray/random.py#L340 I don't know why the website was rendered from the C++ doc instead of the python doc. 🤔 ----------------------------------- > to indicate to users that alpha must be in U(0,1) Bigger than zero actually, `U(0,1)` is just an example. ------------------------ Currently, none of the sampling methods in `mx.random` performs input validity check when then input is a tensor. However, you could take a look at the DeepNumpy interface, which contains an entirely rewritten random module: `mx.np.random`. This module would raise corresponding exception when the input parameters break the restriction.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
