You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

kernel_fusion_stub.cc 1.7 kB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * Copyright 2020 Huawei Technologies Co., Ltd
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include "backend/kernel_compiler/tbe/tbe_kernel_mod.h"
  17. #include "backend/kernel_compiler/tbe/tbe_kernel_compile.h"
  18. namespace mindspore {
  19. namespace kernel {
  20. namespace ascend {
  21. std::string TbeKernelCompileManager::TbeOpSelectFormat(const CNodePtr &node) { return std::string(); }
  22. bool TbeKernelCompileManager::TbeOpCheckSupported(const CNodePtr &node) { return true; }
  23. TbeKernelCompileManager::~TbeKernelCompileManager() {}
  24. bool TbeKernelCompileManager::tbe_init_flag_ = true;
  25. void TbeKernelCompileManager::TbeInitialize() {}
  26. // pre build
  27. void TbeKernelCompileManager::TbePreBuild(const std::shared_ptr<session::KernelGraph> &kernel_graph) {}
  28. // single op compile
  29. void TbeKernelCompileManager::TbeSingleOpCompile(const std::vector<CNodePtr> &anf_nodes) {}
  30. // fusion op compile
  31. JsonNameMap TbeKernelCompileManager::TbeFusionOpCompile(const std::vector<FusionScopeInfo> &fusion_scopes) {
  32. JsonNameMap json_name_map;
  33. for (const auto &fusion_scope_iter : fusion_scopes) {
  34. json_name_map[fusion_scope_iter.scope_id] = "NA";
  35. }
  36. return json_name_map;
  37. }
  38. } // namespace ascend
  39. } // namespace kernel
  40. } // namespace mindspore