Crunchy9 edited a comment on issue #15420: [R] MKL-DNN support: "Unknown exception" in mx.nd.internal.as.array URL: https://github.com/apache/incubator-mxnet/issues/15420#issuecomment-507500789 This will be hard, but... `traceback()` > 9: stop(list(message = "Unknown exception", call = mx.nd.internal.as.array(nd), > cppstack = list(file = "", line = -1L, stack = "C++ stack not available on this system"))) > 8: .External(list(name = "InternalFunction_invoke", address = <pointer: 0x0000000006998270>, > dll = list(name = "Rcpp", path = ".../R/win-library/3.6/Rcpp/libs/x64/Rcpp.dll", > dynamicLookup = TRUE, handle = <pointer: 0x000000006abc0000>, > info = <pointer: 0x0000000006961060>), numParameters = -1L), > <pointer: 0x000000000892b990>, ...) > 7: mx.nd.internal.as.array(nd) > 6: as.array.MXNDArray(res) > 5: as.array(res) > 4: feval(label, pred) > 3: metric$update(label = labels[[i]], pred = preds[[i]], state = train.metric) > 2: mx.model.train(symbol, ctx, input.shape, output.shape, params$arg.params, > params$aux.params, begin.round, num.round, optimizer = optimizer, > train.data = X, eval.data = eval.data, metric = eval.metric, > epoch.end.callback = epoch.end.callback, batch.end.callback = batch.end.callback, > kvstore = kvstore, fixed.param = fixed.param, verbose = verbose, > metric_cpu = metric_cpu) > 1: mx.model.FeedForward.create(softmax, initializer = mx.init.Xavier(factor_type = "in", > magnitude = 2), X = dane, ctx = devices, num.round = 300, > begin.round = epoch + 1, eval.data = NULL, optimizer = mx.opt.create("sgd", > learning.rate = 0.005, momentum = 0.9, wd = 0, lr_scheduler = fs), > eval.metric = mx.metric.accuracy, batch.end.callback = mx.callback.log.speedometer(...)), epoch.end.callback = mx.callback.save.checkpoint(paste0("...", > ...), 1)) Surprisingly, examples from [tutorial](https://mxnet.incubator.apache.org/versions/master/tutorials/r/fiveMinutesNeuralNetwork.html) works fine. Problem occurs when I use `eval.metric` with ` mx.metric.accuracy` arg. If it's changed to `mx.metric.logloss` > Start training with 1 devices Error in mx.nd.internal.dispatch.Ops(.Generic, e1, e2) : [06:03:51] c:\build_mxnet\with_mkldnn\incubator-mxnet\src\operator\tensor\../elemwise_op_common.h:135: Check failed: assign(&dattr, vec.at(i)): Incompatible attr in node at 1-th input: expected [8], got [16]
---------------------------------------------------------------- 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