Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix cpplint
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxun-zhang committed Jun 25, 2019
1 parent d3fcabc commit ce19fd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/operator/nn/mkldnn/mkldnn_flatten.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace mxnet {
namespace op {

class MKLDNNFlattenFwd : public MKLDNNReshapeFwd {
public:
public:
explicit MKLDNNFlattenFwd(const OpReqType &req,
const NDArray &input,
const NDArray &output)
Expand Down Expand Up @@ -81,7 +81,7 @@ void MKLDNNFlattenForward(const nnvm::NodeAttrs &attrs,
fwd.Execute(input, output, ws_ptr);
}

}
}
} // namespace op
} // namespace mxnet

#endif
13 changes: 7 additions & 6 deletions src/operator/nn/mkldnn/mkldnn_reshape-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define MXNET_OPERATOR_NN_MKLDNN_MKLDNN_RESHAPE_INL_H_

#if MXNET_USE_MKLDNN == 1
#include <vector>
#include "mkldnn_base-inl.h"
#include "../../tensor/matrix_op-inl.h"

Expand All @@ -46,14 +47,14 @@ inline bool SupportMKLDNNReshape(const ReshapeParam &param,
}

class MKLDNNReshapeFwd {
protected:
protected:
std::shared_ptr<mkldnn::memory> data_;
std::shared_ptr<mkldnn::memory> out_;
std::shared_ptr<mkldnn::memory> temp_;
std::vector<mkldnn::primitive> prims_;
bool needInvalidateInput = false;

public:
public:
MKLDNNReshapeFwd(const OpReqType &req,
const NDArray &input,
const NDArray &output);
Expand All @@ -76,8 +77,8 @@ void MKLDNNReshapeForward(const nnvm::NodeAttrs& attrs,
const NDArray &input,
const OpReqType &req,
const NDArray &output);
}
}
} // namespace op
} // namespace mxnet

#endif
#endif
#endif // MXNET_USE_MKLDNN == 1
#endif // MXNET_OPERATOR_NN_MKLDNN_MKLDNN_RESHAPE_INL_H_

0 comments on commit ce19fd5

Please sign in to comment.