Browse Source

!2213 fix static check

Merge pull request !2213 from xianwz/static-check-fix
tags/v0.5.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
8cb3859bdf
4 changed files with 1 additions and 4 deletions
  1. +0
    -1
      mindspore/ccsrc/onnx/ir_exporter.cc
  2. +1
    -0
      mindspore/ccsrc/operator/prim_others.cc
  3. +0
    -1
      mindspore/ccsrc/operator/prim_statement.cc
  4. +0
    -2
      mindspore/ccsrc/utils/mpi/mpi_config.cc

+ 0
- 1
mindspore/ccsrc/onnx/ir_exporter.cc 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>;



+ 1
- 0
mindspore/ccsrc/operator/prim_others.cc 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_; }


+ 0
- 1
mindspore/ccsrc/operator/prim_statement.cc 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

+ 0
- 2
mindspore/ccsrc/utils/mpi/mpi_config.cc 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

Loading…
Cancel
Save