!2213 fix static check

Merge pull request !2213 from xianwz/static-check-fix
This commit is contained in:
mindspore-ci-bot 2020-06-17 15:33:58 +08:00 committed by Gitee
commit 8cb3859bdf
4 changed files with 1 additions and 4 deletions

View File

@ -29,7 +29,6 @@
#include "proto/onnx.pb.h"
namespace mindspore {
using FloatPtr = std::shared_ptr<Float>;
using IntPtr = std::shared_ptr<Int>;

View File

@ -84,6 +84,7 @@ class UndeterminedShapeType {
[](const auto &elem) { return FromValue(elem, false); });
dense_shape_ = dense_shape_list;
}
~UndeterminedShapeType() = default;
const std::string &param_name() { return param_name_; }
const std::vector<int> &indices_shape() { return indices_shape_; }
const TypePtr &indices_type() { return indices_type_; }

View File

@ -239,6 +239,5 @@ AbstractBasePtr InferImplIsConstant(const AnalysisEnginePtr &, const PrimitivePt
ValuePtr v = args_spec_list[0]->BuildValue();
return std::make_shared<AbstractScalar>(!v->isa<AnyValue>());
}
} // namespace abstract
} // namespace mindspore

View File

@ -17,7 +17,6 @@
#include "utils/mpi/mpi_config.h"
namespace mindspore {
std::shared_ptr<MpiConfig> MpiConfig::instance_ = nullptr;
std::shared_ptr<MpiConfig> MpiConfig::GetInstance() {
@ -27,5 +26,4 @@ std::shared_ptr<MpiConfig> MpiConfig::GetInstance() {
}
return instance_;
}
} // namespace mindspore