From ec333c92d005c1ed7a2f8e6b0f536a23de8f5b76 Mon Sep 17 00:00:00 2001 From: Xian Weizhao Date: Wed, 17 Jun 2020 14:09:33 +0800 Subject: [PATCH] fix static check --- mindspore/ccsrc/onnx/ir_exporter.cc | 1 - mindspore/ccsrc/operator/prim_others.cc | 1 + mindspore/ccsrc/operator/prim_statement.cc | 1 - mindspore/ccsrc/utils/mpi/mpi_config.cc | 2 -- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/mindspore/ccsrc/onnx/ir_exporter.cc b/mindspore/ccsrc/onnx/ir_exporter.cc index 687d7c23e2..7015ff5e23 100644 --- a/mindspore/ccsrc/onnx/ir_exporter.cc +++ b/mindspore/ccsrc/onnx/ir_exporter.cc @@ -29,7 +29,6 @@ #include "proto/onnx.pb.h" namespace mindspore { - using FloatPtr = std::shared_ptr; using IntPtr = std::shared_ptr; diff --git a/mindspore/ccsrc/operator/prim_others.cc b/mindspore/ccsrc/operator/prim_others.cc index 9d05ecef97..a7323ed3cb 100644 --- a/mindspore/ccsrc/operator/prim_others.cc +++ b/mindspore/ccsrc/operator/prim_others.cc @@ -84,6 +84,7 @@ class UndeterminedShapeType { [](const auto &elem) { return FromValue(elem, false); }); dense_shape_ = dense_shape_list; } + ~UndeterminedShapeType() = default; const std::string ¶m_name() { return param_name_; } const std::vector &indices_shape() { return indices_shape_; } const TypePtr &indices_type() { return indices_type_; } diff --git a/mindspore/ccsrc/operator/prim_statement.cc b/mindspore/ccsrc/operator/prim_statement.cc index 57b3df66b9..5eb8d39996 100644 --- a/mindspore/ccsrc/operator/prim_statement.cc +++ b/mindspore/ccsrc/operator/prim_statement.cc @@ -239,6 +239,5 @@ AbstractBasePtr InferImplIsConstant(const AnalysisEnginePtr &, const PrimitivePt ValuePtr v = args_spec_list[0]->BuildValue(); return std::make_shared(!v->isa()); } - } // namespace abstract } // namespace mindspore diff --git a/mindspore/ccsrc/utils/mpi/mpi_config.cc b/mindspore/ccsrc/utils/mpi/mpi_config.cc index 5831d34f9f..e8d81cf843 100644 --- a/mindspore/ccsrc/utils/mpi/mpi_config.cc +++ b/mindspore/ccsrc/utils/mpi/mpi_config.cc @@ -17,7 +17,6 @@ #include "utils/mpi/mpi_config.h" namespace mindspore { - std::shared_ptr MpiConfig::instance_ = nullptr; std::shared_ptr MpiConfig::GetInstance() { @@ -27,5 +26,4 @@ std::shared_ptr MpiConfig::GetInstance() { } return instance_; } - } // namespace mindspore