forked from mindspore-Ecosystem/mindspore
!2213 fix static check
Merge pull request !2213 from xianwz/static-check-fix
This commit is contained in:
commit
8cb3859bdf
|
@ -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 ¶m_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…
Reference in New Issue