Browse Source

!14875 [ME]Fix codedex

From: @Margaret_wangrui
Reviewed-by: @ginfung,@ginfung,@zh_qh
Signed-off-by: @zh_qh
pull/14875/MERGE
mindspore-ci-bot Gitee 5 years ago
parent
commit
39410310da
11 changed files with 4 additions and 4 deletions
  1. +0
    -0
      mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/space_to_depth_base.h
  2. +0
    -0
      mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/space_to_batch_fp32.h
  3. +0
    -0
      mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/gather_parameter.h
  4. +0
    -0
      mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gatherNd_int8.h
  5. +0
    -0
      mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gather_int8.h
  6. +0
    -0
      mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/leaky_relu_int8.h
  7. +0
    -0
      mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sigmoid_int8.h
  8. +0
    -0
      mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/squeeze_int8.h
  9. +0
    -0
      mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/unsqueeze_int8.h
  10. +0
    -0
      mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/space_to_depth_parameter.h
  11. +4
    -4
      mindspore/ccsrc/pipeline/jit/static_analysis/auto_monad.cc

+ 0
- 0
mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/space_to_depth_base.h View File


+ 0
- 0
mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/space_to_batch_fp32.h View File


+ 0
- 0
mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/gather_parameter.h View File


+ 0
- 0
mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gatherNd_int8.h View File


+ 0
- 0
mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gather_int8.h View File


+ 0
- 0
mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/leaky_relu_int8.h View File


+ 0
- 0
mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sigmoid_int8.h View File


+ 0
- 0
mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/squeeze_int8.h View File


+ 0
- 0
mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/unsqueeze_int8.h View File


+ 0
- 0
mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/space_to_depth_parameter.h View File


+ 4
- 4
mindspore/ccsrc/pipeline/jit/static_analysis/auto_monad.cc View File

@@ -216,7 +216,7 @@ class SccFinder {
explicit SccFinder(FuncGraphPtr root) : root_(root) {}
~SccFinder() = default;
void Run() { (void)Search(root_); }
SccMap &scc_map() { return scc_map_; }
const SccMap &scc_map() { return scc_map_; }

private:
// Save state of a func graph.
@@ -533,7 +533,7 @@ class SideEffectFinder {
EffectInfo TraceTupleEffectInfo(const AnfNodePtr &tuple_node, std::stack<int64_t> *tuple_indexes) {
auto para = dyn_cast<Parameter>(tuple_node);
if (para != nullptr) {
return TraceTupleParaEffectInfo(para, tuple_indexes);
return TraceTupleParaEffectInfo(para, *tuple_indexes);
}
auto tuple_cnode = dyn_cast<CNode>(tuple_node);
if (tuple_cnode != nullptr) {
@@ -543,11 +543,11 @@ class SideEffectFinder {
MS_LOG(EXCEPTION) << "Side effects untraceable: " << tuple_node->DebugString();
}

EffectInfo TraceTupleParaEffectInfo(const ParameterPtr &para, std::stack<int64_t> *tuple_indexes) {
EffectInfo TraceTupleParaEffectInfo(const ParameterPtr &para, const std::stack<int64_t> &tuple_indexes) {
EffectInfo info{EffectInfo::kDetected, false, false, false};
ForEachRealArguments(para, [this, &info, tuple_indexes](const AnfNodePtr &arg) {
// Merge real argument effect info.
auto tuple_indexes_copy = *tuple_indexes;
auto tuple_indexes_copy = tuple_indexes;
auto arg_info = TraceTupleEffectInfo(arg, &tuple_indexes_copy);
info.Merge(arg_info);
});


Loading…
Cancel
Save