Merge pull request !2213 from xianwz/static-check-fixtags/v0.5.0-beta
| @@ -29,7 +29,6 @@ | |||||
| #include "proto/onnx.pb.h" | #include "proto/onnx.pb.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| using FloatPtr = std::shared_ptr<Float>; | using FloatPtr = std::shared_ptr<Float>; | ||||
| using IntPtr = std::shared_ptr<Int>; | using IntPtr = std::shared_ptr<Int>; | ||||
| @@ -84,6 +84,7 @@ class UndeterminedShapeType { | |||||
| [](const auto &elem) { return FromValue(elem, false); }); | [](const auto &elem) { return FromValue(elem, false); }); | ||||
| dense_shape_ = dense_shape_list; | dense_shape_ = dense_shape_list; | ||||
| } | } | ||||
| ~UndeterminedShapeType() = default; | |||||
| const std::string ¶m_name() { return param_name_; } | const std::string ¶m_name() { return param_name_; } | ||||
| const std::vector<int> &indices_shape() { return indices_shape_; } | const std::vector<int> &indices_shape() { return indices_shape_; } | ||||
| const TypePtr &indices_type() { return indices_type_; } | const TypePtr &indices_type() { return indices_type_; } | ||||
| @@ -239,6 +239,5 @@ AbstractBasePtr InferImplIsConstant(const AnalysisEnginePtr &, const PrimitivePt | |||||
| ValuePtr v = args_spec_list[0]->BuildValue(); | ValuePtr v = args_spec_list[0]->BuildValue(); | ||||
| return std::make_shared<AbstractScalar>(!v->isa<AnyValue>()); | return std::make_shared<AbstractScalar>(!v->isa<AnyValue>()); | ||||
| } | } | ||||
| } // namespace abstract | } // namespace abstract | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| @@ -17,7 +17,6 @@ | |||||
| #include "utils/mpi/mpi_config.h" | #include "utils/mpi/mpi_config.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| std::shared_ptr<MpiConfig> MpiConfig::instance_ = nullptr; | std::shared_ptr<MpiConfig> MpiConfig::instance_ = nullptr; | ||||
| std::shared_ptr<MpiConfig> MpiConfig::GetInstance() { | std::shared_ptr<MpiConfig> MpiConfig::GetInstance() { | ||||
| @@ -27,5 +26,4 @@ std::shared_ptr<MpiConfig> MpiConfig::GetInstance() { | |||||
| } | } | ||||
| return instance_; | return instance_; | ||||
| } | } | ||||
| } // namespace mindspore | } // namespace mindspore | ||||