aGiant removed a comment on issue #6333: Automatic context to select CPU or 
GPU(s)
URL: 
https://github.com/apache/incubator-mxnet/issues/6333#issuecomment-594113416
 
 
   Still error with as_in_context():
   <ipython-input-29-279fc4e37624> in performance_measure(y_pred, y_true)
        12     with mx.gpu(0):
        13         half = nd.ones(y_true.shape)*0.5
   ---> 14         right = nd.lesser(nd.abs(y_pred - y_true), 
half.as_in_context(model_ctx))
        15         wrong = nd.greater(nd.abs(y_pred - y_true), 
half.as_in_context(model_ctx))
        16         take_opt = nd.greater(nd.abs(y_pred), 
half.as_in_context(model_ctx))
   
   

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

Reply via email to