xidulu edited a comment on issue #16829: [Numpy][Operator] 'where' Implementation in MXNet URL: https://github.com/apache/incubator-mxnet/pull/16829#issuecomment-554435551 Two question: 1. Numpy supports the following usage: ``` >>> import numpy as np >>> a = np.random.uniform(size=(4,1)) >>> np.where(a > 0.5) (array([0, 1, 2]), array([0, 0, 0])) ``` in short: x and y are optional ( either *both* or *neither* of x and y should be given) 2. How did you handle the scalar case mentioned in the docstring? https://github.com/apache/incubator-mxnet/pull/16829/files#diff-2867f3bd5e893c32c128044e32d821d6R7353-R7359
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services