[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: us...@infra.apache.org With regards, Apache Git Services
[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-594130280 This is not a feature request but a bug. 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
[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-594113416 Still error with as_in_context(): 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