提交 f8dd03dc 编写于 作者: M mozga-intel 提交者: Yan Chunwei

Prepare code for CentOS (#9651)

上级 5eb9cecc
...@@ -27,8 +27,8 @@ template <typename T> ...@@ -27,8 +27,8 @@ template <typename T>
class MKLDNNMD { class MKLDNNMD {
public: public:
explicit MKLDNNMD(const T* in, const T* w, bool bias) explicit MKLDNNMD(const T* in, const T* w, bool bias)
: in{paddle::framework::vectorize2int(in->dims())}, : in(paddle::framework::vectorize2int(in->dims())),
w{paddle::framework::vectorize2int(w->dims())} { w(paddle::framework::vectorize2int(w->dims())) {
with_bias_ = bias; with_bias_ = bias;
} }
...@@ -78,7 +78,7 @@ class MKLDNNMD { ...@@ -78,7 +78,7 @@ class MKLDNNMD {
class MKLDNNMemory { class MKLDNNMemory {
public: public:
MKLDNNMemory(MKLDNNMD<Tensor>* t, const mkldnn::engine& e) MKLDNNMemory(MKLDNNMD<Tensor>* t, const mkldnn::engine& e)
: md_{t}, engine_{e} {} : md_(t), engine_(e) {}
virtual ~MKLDNNMemory() = default; virtual ~MKLDNNMemory() = default;
template <typename Output> template <typename Output>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册