azai91 commented on issue #10026: MXNET_MKLDNN_DEBUG=1 produces errors URL: https://github.com/apache/incubator-mxnet/issues/10026#issuecomment-404949058 @pengzhao-intel I believe when you call copyfrom it will convert the input memory shape into the same shape as the target. so if you Reorder2Default but then call copyfrom the mkldnn memory will be the new shape ``` NDArray data = inputs_[i]; inputs.emplace_back(data.shape(), ctx, false, data.dtype()); if (data.IsMKLDNNData() && data.IsView()) data = in_data[fullc::kData].Reorder2Default(); auto mem = inputs_[i].GetMKLDNNData(); inputs[i].CopyFrom(*mem); ```
---------------------------------------------------------------- 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