Skip to content

Commit

Permalink
Remove doubled oneDNN memory descriptor creation (apache#20822)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekkuncer authored Jan 18, 2022
1 parent 59b4c18 commit 5e08b7f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/operator/nn/dnnl/dnnl_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ dnnl::memory::desc GetDesc(const dnnl::memory::desc& desc, const dnnl_format_tag
dims[i] = desc.data.dims[i];
dnnl::memory::format_tag cpp_format = static_cast<dnnl::memory::format_tag>(format);
dnnl::memory::data_type cpp_type = static_cast<dnnl::memory::data_type>(desc.data.data_type);
dnnl::memory::desc data_md(dims, cpp_type, cpp_format);
return dnnl::memory::desc(dims, cpp_type, cpp_format);
}

Expand Down

0 comments on commit 5e08b7f

Please sign in to comment.