From 53d8d5336d32a8517bb90633226360eed6668da4 Mon Sep 17 00:00:00 2001 From: "B. Gawrych" Date: Tue, 26 Oct 2021 18:11:30 +0200 Subject: [PATCH] fix sanity --- src/operator/subgraph/dnnl/dnnl_batch_dot.cc | 2 +- src/operator/subgraph/dnnl/dnnl_batch_dot_property.h | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/operator/subgraph/dnnl/dnnl_batch_dot.cc b/src/operator/subgraph/dnnl/dnnl_batch_dot.cc index d48f5171c6cf..612629da6ccf 100644 --- a/src/operator/subgraph/dnnl/dnnl_batch_dot.cc +++ b/src/operator/subgraph/dnnl/dnnl_batch_dot.cc @@ -173,4 +173,4 @@ NNVM_REGISTER_OP(_sg_onednn_batch_dot) } // namespace op } // namespace mxnet -#endif // if MXNET_USE_ONEDNN == 1 \ No newline at end of file +#endif // if MXNET_USE_ONEDNN == 1 diff --git a/src/operator/subgraph/dnnl/dnnl_batch_dot_property.h b/src/operator/subgraph/dnnl/dnnl_batch_dot_property.h index 3e42f4ad798d..d2f33aa1cc5a 100644 --- a/src/operator/subgraph/dnnl/dnnl_batch_dot_property.h +++ b/src/operator/subgraph/dnnl/dnnl_batch_dot_property.h @@ -34,8 +34,6 @@ namespace op { class SgDNNLBatchDotSelector : public SubgraphSelector { public: - explicit SgDNNLBatchDotSelector() {} - bool Select(const nnvm::Node& n) override { return n.op() && n.op()->name == "batch_dot"; } @@ -51,8 +49,6 @@ class SgDNNLBatchDotSelector : public SubgraphSelector { class SgDNNLBatchDotProperty : public SubgraphProperty { public: - SgDNNLBatchDotProperty() {} - static SubgraphPropertyPtr Create() { static const std::string& name = "DNNL Batch Dot optimization pass"; auto property = std::make_shared(); @@ -100,4 +96,4 @@ class SgDNNLBatchDotProperty : public SubgraphProperty { } // namespace mxnet #endif // if MXNET_USE_ONEDNN == 1 -#endif // MXNET_OPERATOR_SUBGRAPH_DNNL_DNNL_BATCH_DOT_PROPERTY_H_ \ No newline at end of file +#endif // MXNET_OPERATOR_SUBGRAPH_DNNL_DNNL_BATCH_DOT_PROPERTY_H_