rongzha1 commented on a change in pull request #16259: [mkldnn-v1.0] Add MKL-DNN deconv URL: https://github.com/apache/incubator-mxnet/pull/16259#discussion_r329850734
########## File path: src/operator/nn/mkldnn/mkldnn_base.cc ########## @@ -570,6 +570,32 @@ bool MKLDNNStorageType(const nnvm::NodeAttrs &attrs, return dispatched; } +inline static const std::vector<NDArray> GetMKLDNNInputArray(const std::vector<NDArray> &inputs) { + std::vector<NDArray> ret; + ret.reserve(inputs.size()); + for (const auto &in : inputs) { + if (in.IsView() && in.IsMKLDNNData()) { + ret.push_back(in.Reorder2Default()); + } else { + ret.push_back(in); + } + } + return ret; +} +void MKLDNNRun(mxnet::FComputeEx fn, Review comment: done ---------------------------------------------------------------- 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