Unverified Commit 9f26b7e9 authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

address klocwork issue (#1747)

parent a0be5231
...@@ -98,7 +98,7 @@ namespace ngraph ...@@ -98,7 +98,7 @@ namespace ngraph
return true; return true;
} }
void LayoutDescriptor::set_mkldnn_md(const mkldnn::memory::desc md) void LayoutDescriptor::set_mkldnn_md(const mkldnn::memory::desc& md)
{ {
m_mkldnn_md = md; m_mkldnn_md = md;
......
...@@ -46,7 +46,7 @@ namespace ngraph ...@@ -46,7 +46,7 @@ namespace ngraph
bool operator==(const TensorLayout& other) const override; bool operator==(const TensorLayout& other) const override;
const mkldnn::memory::desc& get_mkldnn_md() const { return m_mkldnn_md; } const mkldnn::memory::desc& get_mkldnn_md() const { return m_mkldnn_md; }
void set_mkldnn_md(const mkldnn::memory::desc md); void set_mkldnn_md(const mkldnn::memory::desc& md);
bool is_mkldnn_layout() const bool is_mkldnn_layout() const
{ {
return m_mkldnn_md.data.format != mkldnn::memory::format::format_undef; return m_mkldnn_md.data.format != mkldnn::memory::format::format_undef;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment