You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/03/03 20:12:31 UTC

[GitHub] [incubator-mxnet] aGiant removed a comment on issue #6333: Automatic context to select CPU or GPU(s)

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-594112031
 
 
   Almost 3 years, the error remains the same:
    
   MXNetError: [19:56:15] src/imperative/./imperative_utils.h:71: Check failed: inputs[i]->ctx().dev_mask() == ctx.dev_mask() (1 vs. 2) : Operator broadcast_sub require all inputs live on the same context. But the first argument is on gpu(0) while the 2-th argument is on cpu(0)
   
   Even with gpu():
   
    12     with mx.gpu():
        13         half = nd.ones(y_true.shape)*0.5
   ---> 14         right = nd.lesser(nd.abs(y_pred - y_true), half)
        15         wrong = nd.greater(nd.abs(y_pred - y_true), half)
        16         take_opt = nd.greater(nd.abs(y_pred), half)

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services