fix static check

pull/2213/head
Xian Weizhao 5 years ago
parent 7038df8b99
commit ec333c92d0

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

@ -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_; }

@ -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

@ -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

Loading…
Cancel
Save