This is an automated email from the ASF dual-hosted git repository.
jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new ab6a25e Reorder2Default: return directly for default format (#10810)
ab6a25e is described below
commit ab6a25ea2f184998cc472a98f1b0f4808c89211a
Author: Tao Lv <[email protected]>
AuthorDate: Sat May 5 05:20:44 2018 +0800
Reorder2Default: return directly for default format (#10810)
---
src/ndarray/ndarray.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ndarray/ndarray.cc b/src/ndarray/ndarray.cc
index a28a907..a643da1 100644
--- a/src/ndarray/ndarray.cc
+++ b/src/ndarray/ndarray.cc
@@ -348,7 +348,8 @@ void NDArray::Chunk::Reorder2Default() {
return;
mkldnn_memory_format_t format = mkl_mem_->GetDefaultFormat();
- CHECK_NE(format, mkl_mem_->GetFormat());
+ if (format == mkl_mem_->GetFormat())
+ return;
mkldnn::memory::primitive_desc def_pd = mkl_mem_->GetPrimitiveDesc(format);
mkldnn_mem_ptr def_mem(new mkldnn::memory(def_pd));
--
To stop receiving notification emails like this one, please contact
[email protected].