You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by bg...@apache.org on 2022/01/27 15:07:12 UTC

[incubator-mxnet] branch v1.x updated: [v1.x] Remove doubled memory descriptor creation (#20823)

This is an automated email from the ASF dual-hosted git repository.

bgawrych pushed a commit to branch v1.x
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/v1.x by this push:
     new 4e64e2c  [v1.x] Remove doubled memory descriptor creation (#20823)
4e64e2c is described below

commit 4e64e2cb560431f2d1cbbef284d318b798ff7c1d
Author: bartekkuncer <ba...@intel.com>
AuthorDate: Thu Jan 27 16:05:25 2022 +0100

    [v1.x] Remove doubled memory descriptor creation (#20823)
---
 src/operator/nn/mkldnn/mkldnn_base.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/operator/nn/mkldnn/mkldnn_base.cc b/src/operator/nn/mkldnn/mkldnn_base.cc
index 8e1dd74..9b797a6 100644
--- a/src/operator/nn/mkldnn/mkldnn_base.cc
+++ b/src/operator/nn/mkldnn/mkldnn_base.cc
@@ -384,7 +384,6 @@ mkldnn::memory::desc GetDesc(const mkldnn::memory::desc& desc, const mkldnn_form
     dims[i] = desc.data.dims[i];
   mkldnn::memory::format_tag cpp_format = static_cast<mkldnn::memory::format_tag>(format);
   mkldnn::memory::data_type cpp_type = static_cast<mkldnn::memory::data_type>(desc.data.data_type);
-  mkldnn::memory::desc data_md(dims, cpp_type, cpp_format);
   return mkldnn::memory::desc(dims, cpp_type, cpp_format);
 }