Browse Source

!15170 fix bot check

From: @lingyunli63
Reviewed-by: @gaoxiong1,@ckey_dou
Signed-off-by: @ckey_dou
pull/15170/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
12e60a7a27
3 changed files with 3 additions and 5 deletions
  1. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/akg/akg_kernel_build.h
  2. +2
    -2
      mindspore/ccsrc/backend/optimizer/graph_kernel/graph_kernel_cse.cc
  3. +1
    -2
      mindspore/ccsrc/backend/optimizer/graph_kernel/graph_kernel_helper.cc

+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/akg/akg_kernel_build.h View File

@@ -50,7 +50,6 @@ class AkgKernelBuilder {
bool AkgOpParallelBuild(const std::vector<JsonNodePair> &build_args);
std::vector<JsonNodePair> repeat_nodes_;
};

} // namespace kernel
} // namespace mindspore



+ 2
- 2
mindspore/ccsrc/backend/optimizer/graph_kernel/graph_kernel_cse.cc View File

@@ -78,8 +78,8 @@ bool GraphKernelBackendCSE::CheckEqualKernelBuildInfo(const AnfNodePtr &main, co
return BackendCSE::CheckEqualKernelBuildInfo(main, node);
}

auto main_kernel_info = dynamic_cast<device::KernelInfo *>(main->kernel_info());
auto node_kernel_info = dynamic_cast<device::KernelInfo *>(node->kernel_info());
auto main_kernel_info = static_cast<device::KernelInfo *>(main->kernel_info());
auto node_kernel_info = static_cast<device::KernelInfo *>(node->kernel_info());
if (main_kernel_info == nullptr && node_kernel_info == nullptr) {
return true;
}


+ 1
- 2
mindspore/ccsrc/backend/optimizer/graph_kernel/graph_kernel_helper.cc View File

@@ -621,7 +621,7 @@ std::vector<PrimitivePtr> GetFusibleOpList() {
bool CheckProcessor(const AnfNodePtr &node, kernel::Processor processor = kernel::Processor::AICORE) {
MS_EXCEPTION_IF_NULL(node);

auto node_kernel_info = dynamic_cast<device::KernelInfo *>(node->kernel_info());
auto node_kernel_info = static_cast<device::KernelInfo *>(node->kernel_info());
if (node_kernel_info == nullptr) {
return false;
}
@@ -867,7 +867,6 @@ bool IsKeepBasicNode(const AnfNodePtr &node) {
"aggregate", "aggregate_input_indexx"};
static std::vector<std::function<bool(const AnfNodePtr &node)>> attrs_with_value = {
[](const AnfNodePtr &n) -> bool { return AnfAlgo::GetBooleanAttr(n, "skip"); }};

// If node contain attribute in contagious_attrs, it have to keep basic no matter what the value is.
// If node contain attribute in attrs_with_value, it only have to keep basic when the check result is true.
if (std::any_of(contagious_attrs.cbegin(), contagious_attrs.cend(),


Loading…
Cancel
Save