fallingdust commented on issue #8546: What's the equivalent of np.where()?
URL: 
https://github.com/apache/incubator-mxnet/issues/8546#issuecomment-342380154
 
 
   @zhreshold 
   I can fully understand that np.where is not supported by mx.symbol, but why 
not mx.ndarray? We can slice the ndarray by the value of data.
   And would you please give an example on how to get the cls_scores according 
to labels != -1?
   `
   keep = np.where(labels != -1)[0]
   cls_scores = cls_scores[keep]
   `
   Thx!

----------------------------------------------------------------
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