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.

trace.cc 19 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. /**
  2. * Copyright 2019-2021 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 "debug/trace.h"
  17. #include <iostream>
  18. #include <fstream>
  19. #include <map>
  20. #include <unordered_map>
  21. #include <unordered_set>
  22. #include <vector>
  23. #include <string>
  24. #include <sstream>
  25. #include <utility>
  26. #include <stack>
  27. #include <algorithm>
  28. #include "ir/meta_func_graph.h"
  29. #include "ir/graph_utils.h"
  30. #include "frontend/operator/composite/composite.h"
  31. #include "ir/tensor.h"
  32. #include "debug/anf_ir_utils.h"
  33. #include "debug/common.h"
  34. #include "pipeline/jit/static_analysis/evaluator.h"
  35. #include "pipeline/jit/static_analysis/async_eval_result.h"
  36. #include "pipeline/jit/base.h"
  37. #include "utils/log_adapter.h"
  38. #include "utils/comm_manager.h"
  39. #include "abstract/abstract_value.h"
  40. namespace mindspore {
  41. // namespace to support debug trace information
  42. namespace trace {
  43. using abstract::AbstractBasePtr;
  44. using abstract::AnalysisContextPtr;
  45. using abstract::AnalysisEnginePtr;
  46. using abstract::AnfNodeConfigPtr;
  47. std::string GetAbstractStr(const abstract::AbstractBasePtr &abs) {
  48. if (abs == nullptr) {
  49. return "NullAbstract";
  50. }
  51. auto shape = abs->BuildShape()->cast<abstract::ShapePtr>();
  52. TypePtr type = abs->BuildType();
  53. std::ostringstream oss;
  54. if ((shape != nullptr) && (type != nullptr)) {
  55. oss << type->DumpText() << shape->DumpText();
  56. } else if (type != nullptr) {
  57. oss << type->DumpText();
  58. } else {
  59. oss << "Undefined";
  60. }
  61. return oss.str();
  62. }
  63. std::string GetGraphParamString(const FuncGraphPtr &graph, const abstract::AbstractBasePtrList &args_spec_list) {
  64. MS_EXCEPTION_IF_NULL(graph);
  65. std::ostringstream oss;
  66. oss << "graph:" << graph->ToString() << " with args[";
  67. auto params = graph->parameters();
  68. if (params.size() < args_spec_list.size()) {
  69. MS_EXCEPTION(TypeError) << "The size of parameters less than args_spec_list's size.";
  70. }
  71. for (size_t i = 0; i < args_spec_list.size(); i++) {
  72. auto parameter = params[i];
  73. MS_EXCEPTION_IF_NULL(parameter);
  74. oss << parameter->ToString() << ":<" << GetAbstractStr(args_spec_list[i]) << ">,";
  75. }
  76. oss << "]";
  77. oss << GetDebugInfo(graph->debug_info(), kSourceLineTipDiscard);
  78. return oss.str();
  79. }
  80. void DumpInferStack(std::ostringstream &oss) {
  81. auto &graph_stack = GetCurrenGraphEvalStack();
  82. if (graph_stack.empty()) {
  83. return;
  84. }
  85. std::vector<std::pair<abstract::AnalysisContextPtr, abstract::AnfNodeConfigPtr>> infer_vec;
  86. while (!graph_stack.empty()) {
  87. auto top = graph_stack.back();
  88. infer_vec.push_back(top);
  89. graph_stack.pop_back();
  90. }
  91. std::reverse(infer_vec.begin(), infer_vec.end());
  92. int index = 0;
  93. for (const auto &item : infer_vec) {
  94. auto context = item.first;
  95. if (context == nullptr) {
  96. MS_LOG(EXCEPTION) << "DumpInferStack failed, got null graph context";
  97. }
  98. auto graph = context->func_graph();
  99. if (graph == nullptr) { // Top context.
  100. continue;
  101. }
  102. auto args_spec_list = context->args_spec_list();
  103. if (graph->parameters().size() < args_spec_list.size()) {
  104. continue;
  105. }
  106. oss << " #" << index++ << " " << GetGraphParamString(graph, args_spec_list) << "\n";
  107. }
  108. }
  109. void TraceGraphEval() {
  110. auto &graph_stack = GetCurrenGraphEvalStack();
  111. if (graph_stack.empty()) {
  112. MS_LOG(INFO) << "Length of analysis graph stack is empty.";
  113. return;
  114. }
  115. std::ostringstream oss;
  116. oss << "\n*******************************graph evaluate stack**********************************";
  117. oss << std::endl;
  118. DumpInferStack(oss);
  119. oss << "\n*************************************************************************************";
  120. MS_LOG(ERROR) << oss.str();
  121. }
  122. class AnalyzeFailExporter : public AnfExporter {
  123. public:
  124. AnalyzeFailExporter() : AnfExporter(true, false) {}
  125. ~AnalyzeFailExporter() override = default;
  126. bool ExportFuncGraph(const std::string &filename, const TraceCNodeEvalStack &node_config_stack);
  127. protected:
  128. void OutputCNode(std::ofstream &ofs, const CNodePtr &cnode, const FuncGraphPtr &func_graph, int *idx,
  129. std::map<AnfNodePtr, int> *const apply_map) override;
  130. private:
  131. std::string GetNodeType(const AnfNodePtr &nd) override;
  132. AbstractBasePtr GetNodeAbstract(const AnfNodePtr &nd);
  133. AnfNodeConfigPtr GetForwardConfig(const AnfNodeConfigPtr &cfg);
  134. void ProcessFuncGraphCall(const CNodePtr &node, std::string *const op_comment);
  135. void OutputStatementComment(std::ofstream &ofs, const CNodePtr &node);
  136. std::unordered_map<FuncGraphPtr, TaggedNodeMap> CreateTaggedNodeMap(
  137. const std::vector<abstract::AnfNodeConfigPtr> &node_config_stack);
  138. AnalysisContextPtr current_context_ = nullptr;
  139. AnalysisEnginePtr engine_ = nullptr;
  140. };
  141. std::unordered_map<FuncGraphPtr, TaggedNodeMap> AnalyzeFailExporter::CreateTaggedNodeMap(
  142. const std::vector<abstract::AnfNodeConfigPtr> &node_config_stack) {
  143. std::unordered_set<abstract::AnfNodeConfigPtr> forwarded_configs; // Check if config. is forwarded.
  144. std::unordered_map<FuncGraphPtr, TaggedNodeMap> tagged_func_graphs;
  145. size_t index = 0;
  146. for (auto &node_config : node_config_stack) {
  147. MS_EXCEPTION_IF_NULL(node_config);
  148. // Record new config in set.
  149. auto new_config = GetForwardConfig(node_config);
  150. if (new_config != node_config) {
  151. MS_LOG(DEBUG) << "The node_config is forwarded, old config: " << node_config->ToString()
  152. << ", new_config: " << new_config->ToString();
  153. forwarded_configs.emplace(new_config);
  154. }
  155. // Ignore the new config.
  156. if (forwarded_configs.find(node_config) != forwarded_configs.end()) {
  157. continue;
  158. }
  159. auto fg = node_config->func_graph();
  160. MS_EXCEPTION_IF_NULL(fg);
  161. auto node = node_config->node();
  162. tagged_func_graphs[fg][node] = index;
  163. index++;
  164. }
  165. return tagged_func_graphs;
  166. }
  167. bool OutputAnalyzedGraphWithType(const string &file_path) {
  168. AnalyzeFailExporter exporter;
  169. return exporter.ExportFuncGraph(file_path, GetCNodeDebugStack());
  170. }
  171. std::string AnalyzeFailExporter::GetNodeType(const AnfNodePtr &node) {
  172. if (current_context_ == nullptr) {
  173. return AnfExporter::GetNodeType(node);
  174. }
  175. MS_EXCEPTION_IF_NULL(engine_);
  176. try {
  177. FuncGraphPtr dummy_call_func_graph = nullptr;
  178. auto cfg = engine_->MakeConfig(node, current_context_, dummy_call_func_graph);
  179. auto res = abstract::AnalysisResultCacheMgr::GetInstance().GetValue(cfg);
  180. if (res != nullptr) {
  181. return GetAbstractStr(res->abstract());
  182. }
  183. } catch (const std::exception &e) {
  184. MS_LOG(INFO) << "Exception: " << e.what();
  185. }
  186. return "Undefined";
  187. }
  188. AbstractBasePtr AnalyzeFailExporter::GetNodeAbstract(const AnfNodePtr &node) {
  189. if (current_context_ == nullptr) {
  190. return nullptr;
  191. }
  192. MS_EXCEPTION_IF_NULL(engine_);
  193. try {
  194. FuncGraphPtr dummy_call_func_graph = nullptr;
  195. auto cfg = engine_->MakeConfig(node, current_context_, dummy_call_func_graph);
  196. auto res = abstract::AnalysisResultCacheMgr::GetInstance().GetValue(cfg);
  197. return res == nullptr ? nullptr : res->abstract();
  198. } catch (const std::exception &e) {
  199. MS_LOG(INFO) << "Exception: " << e.what();
  200. }
  201. return nullptr;
  202. }
  203. AnfNodeConfigPtr AnalyzeFailExporter::GetForwardConfig(const AnfNodeConfigPtr &cfg) {
  204. MS_EXCEPTION_IF_NULL(cfg);
  205. MS_EXCEPTION_IF_NULL(engine_);
  206. AnfNodeConfigPtr cur_cfg = cfg;
  207. auto iter = engine_->anfnode_config_map().find(cur_cfg);
  208. while (iter != engine_->anfnode_config_map().end()) {
  209. auto node = cur_cfg->node();
  210. cur_cfg = iter->second;
  211. MS_LOG(DEBUG) << "Get forword node: " << node << "[" << node->DebugString() << "] --> " << cur_cfg->node() << "["
  212. << cur_cfg->node()->DebugString() << "]";
  213. iter = engine_->anfnode_config_map().find(cur_cfg);
  214. }
  215. return cur_cfg;
  216. }
  217. void AnalyzeFailExporter::ProcessFuncGraphCall(const CNodePtr &node, std::string *const op_comment) {
  218. if (node == nullptr) {
  219. MS_LOG(ERROR) << "Node is nullptr";
  220. return;
  221. }
  222. CNodePtr cnode = nullptr;
  223. try {
  224. FuncGraphPtr dummy_call_func_graph = nullptr;
  225. auto cfg = engine_->MakeConfig(node, current_context_, dummy_call_func_graph);
  226. cfg = GetForwardConfig(cfg);
  227. cnode = dyn_cast<CNode>(cfg->node());
  228. } catch (const std::exception &e) {
  229. MS_LOG(INFO) << "Exception: " << e.what();
  230. }
  231. if (cnode == nullptr) {
  232. MS_LOG(INFO) << "CNode is nullptr";
  233. return;
  234. }
  235. const auto &inputs = cnode->inputs();
  236. for (size_t i = 0; i < inputs.size(); ++i) {
  237. auto op_abs = GetNodeAbstract(inputs[i]);
  238. if (op_abs == nullptr) {
  239. MS_LOG(DEBUG) << "Abstract of inputs[" << i << "] of cnode " << cnode->ToString() << " is nullptr";
  240. continue;
  241. }
  242. if (!op_abs->isa<abstract::FuncGraphAbstractClosure>() && !op_abs->isa<abstract::MetaFuncGraphAbstractClosure>()) {
  243. MS_LOG(DEBUG) << "Inputs[" << i << "] of cnode " << cnode->ToString() << " is of type " << op_abs->type_name()
  244. << ", not function, ignore it";
  245. // Get prototype of VirtualEvaluator for printing
  246. if (i == 0 && op_abs->isa<abstract::VirtualAbstractClosure>()) {
  247. auto func = dyn_cast<abstract::VirtualAbstractClosure>(op_abs);
  248. std::ostringstream oss;
  249. oss << "(";
  250. bool first_flag = false;
  251. for (const auto &arg : func->args_spec_list()) {
  252. if (!first_flag) {
  253. first_flag = true;
  254. } else {
  255. oss << ", ";
  256. }
  257. oss << GetAbstractStr(arg);
  258. }
  259. oss << ") -> " << GetAbstractStr(func->output()) << " ";
  260. *op_comment = oss.str();
  261. }
  262. }
  263. }
  264. }
  265. void AnalyzeFailExporter::OutputStatementComment(std::ofstream &ofs, const CNodePtr &node) {
  266. if (node == nullptr) {
  267. return;
  268. }
  269. // Output type of each input argument
  270. auto &inputs = node->inputs();
  271. if (inputs.size() > 1) {
  272. ofs << " #(";
  273. for (size_t i = 1; i < inputs.size(); ++i) {
  274. if (i != 1) {
  275. ofs << ", ";
  276. }
  277. AnfNodePtr arg = inputs[i];
  278. ofs << GetNodeType(arg);
  279. }
  280. ofs << ")";
  281. }
  282. // Output other comment, map the graph name to original representation(containing unicode character)
  283. std::ostringstream comment;
  284. comment << " #";
  285. bool has_comment = false;
  286. for (size_t i = 0; i < inputs.size(); ++i) {
  287. AnfNodePtr arg = inputs[i];
  288. if (!IsValueNode<FuncGraph>(arg)) {
  289. continue;
  290. }
  291. if (!has_comment) {
  292. has_comment = true;
  293. } else {
  294. comment << ",";
  295. }
  296. FuncGraphPtr fg = GetValueNode<FuncGraphPtr>(arg);
  297. std::string func_graph_id = fg->debug_info()->get_id();
  298. comment << " fg_" << func_graph_id << "=" << fg->ToString();
  299. }
  300. if (has_comment) {
  301. ofs << comment.str();
  302. }
  303. ofs << " #scope: " << node->scope()->name();
  304. }
  305. void AnalyzeFailExporter::OutputCNode(std::ofstream &ofs, const CNodePtr &cnode, const FuncGraphPtr &func_graph,
  306. int *idx, std::map<AnfNodePtr, int> *const apply_map) {
  307. OutputCNodeText(ofs, cnode, func_graph, idx, apply_map);
  308. // Process function graph call
  309. std::string op_comment;
  310. ProcessFuncGraphCall(cnode, &op_comment);
  311. if (!op_comment.empty()) {
  312. auto &inputs = cnode->inputs();
  313. ofs << " #" << GetAnfNodeText(func_graph, inputs[0], *apply_map) << ".prototype = " << op_comment;
  314. }
  315. // Output comment
  316. OutputStatementComment(ofs, cnode);
  317. ofs << "\n";
  318. }
  319. bool AnalyzeFailExporter::ExportFuncGraph(const std::string &filename, const TraceCNodeEvalStack &node_config_stack) {
  320. if (node_config_stack.empty()) {
  321. MS_LOG(DEBUG) << "Node configs is empty";
  322. return false;
  323. }
  324. auto real_filepath = Common::GetRealPath(filename);
  325. if (!real_filepath.has_value()) {
  326. MS_LOG(ERROR) << "The export ir path: " << filename << " is not illegal.";
  327. return false;
  328. }
  329. ChangeFileMode(real_filepath.value(), S_IWUSR);
  330. std::ofstream ofs(real_filepath.value());
  331. if (!ofs.is_open()) {
  332. MS_LOG(ERROR) << "Open file '" << real_filepath.value() << "' failed!"
  333. << " Errno:" << errno << " ErrInfo:" << strerror(errno);
  334. return false;
  335. }
  336. if (engine_ == nullptr) {
  337. engine_ = node_config_stack.front()->engine();
  338. }
  339. auto tagged_func_graphs = CreateTaggedNodeMap(node_config_stack);
  340. std::unordered_set<FuncGraphPtr> printed_func_graphs; // Check if func graph has been printed.
  341. // Output graph on the analysis stack
  342. for (const auto &node_config : node_config_stack) {
  343. auto fg = node_config->func_graph();
  344. MS_LOG(INFO) << "Node: " << node_config->node()->DebugString()
  345. << ", FV: " << (node_config->func_graph() != node_config->context()->func_graph())
  346. << ", calling func graph: " << node_config->func_graph()->ToString()
  347. << ", context func graph: " << node_config->context()->func_graph()->ToString();
  348. if (fg == nullptr) {
  349. MS_LOG(ERROR) << "FuncGraph is null, context: " << node_config->ToString();
  350. continue;
  351. }
  352. if (printed_func_graphs.find(fg) != printed_func_graphs.end()) {
  353. continue;
  354. }
  355. (void)printed_func_graphs.emplace(fg);
  356. current_context_ = node_config->context(); // Set current context.
  357. ExportOneFuncGraph(ofs, fg, tagged_func_graphs[fg]);
  358. ofs << "\n\n";
  359. }
  360. ofs << "#===============================================================================\n";
  361. ofs << "# num of function graphs in stack: ";
  362. auto ignored_num = (node_config_stack.size() - printed_func_graphs.size());
  363. if (ignored_num == 0) {
  364. ofs << node_config_stack.size() << "\n";
  365. } else {
  366. ofs << printed_func_graphs.size() << "/" << node_config_stack.size() << " (Ignored " << ignored_num
  367. << " internal frames).\n";
  368. }
  369. ofs.close();
  370. ChangeFileMode(real_filepath.value(), S_IRUSR);
  371. return true;
  372. }
  373. std::string GetEvalFailDatPath() {
  374. std::string path;
  375. auto ms_om_path = common::GetEnv("MS_OM_PATH");
  376. if (!ms_om_path.empty()) {
  377. path = ms_om_path;
  378. } else {
  379. path = ".";
  380. }
  381. path += "/rank_" + std::to_string(GetRank()) + "/om/analyze_fail.dat";
  382. auto realpath = Common::GetRealPath(path);
  383. if (!realpath.has_value()) {
  384. MS_EXCEPTION(ValueError) << "Get real path failed. path=" << path;
  385. }
  386. return realpath.value();
  387. }
  388. void GetEvalStackInfo(std::ostringstream &oss) {
  389. MS_LOG(INFO) << "Get graph analysis information begin";
  390. auto stack = GetCNodeDebugStack();
  391. if (stack.empty()) {
  392. MS_LOG(INFO) << "Length of analysis information stack is empty.";
  393. return;
  394. }
  395. std::string file_name = GetEvalFailDatPath();
  396. auto ret = OutputAnalyzedGraphWithType(file_name);
  397. oss << "\nThe function call stack";
  398. if (ret) {
  399. oss << " (See file '" << file_name << "' for more details)";
  400. }
  401. oss << ":\n";
  402. int index = 0;
  403. std::string last_location_info = "";
  404. for (size_t i = 0; i < stack.size(); ++i) {
  405. auto node_config = stack[i];
  406. MS_EXCEPTION_IF_NULL(node_config);
  407. auto cnode = dyn_cast<CNode>(node_config->node());
  408. if (cnode == nullptr) {
  409. MS_LOG(DEBUG) << "CNode of elements[" << i << "] is nullptr.";
  410. continue;
  411. }
  412. auto debug_info = cnode->debug_info();
  413. auto this_location_info = trace::GetDebugInfo(debug_info, std::string(""));
  414. if (this_location_info.empty() || this_location_info == last_location_info) {
  415. continue;
  416. }
  417. last_location_info = this_location_info;
  418. oss << "# " << index++ << " " << this_location_info;
  419. }
  420. stack.clear();
  421. MS_LOG(INFO) << "Get graph analysis information *end*";
  422. }
  423. // Trace the graph evaluator stack
  424. thread_local TraceGraphEvalStack graph_infer_stack;
  425. // Trace the cnode infer debug info
  426. thread_local TraceCNodeEvalStack cnode_debug_stack{};
  427. void TraceGraphEvalEnter(const abstract::AnalysisContextPtr &context, const abstract::AnfNodeConfigPtr &node) {
  428. if (context == nullptr) {
  429. MS_LOG(EXCEPTION) << "GraphInferEnter got null context";
  430. }
  431. (void)graph_infer_stack.push_back(std::pair<abstract::AnalysisContextPtr, abstract::AnfNodeConfigPtr>(context, node));
  432. }
  433. void TraceGraphEvalLeave(const abstract::AnalysisContextPtr &context) {
  434. if (context == nullptr || graph_infer_stack.empty()) {
  435. MS_LOG(EXCEPTION) << "The context is null, or call stack is empty.";
  436. }
  437. if (context != graph_infer_stack.back().first) {
  438. MS_LOG(EXCEPTION) << "Different context: " << context->func_graph()->ToString() << ", "
  439. << graph_infer_stack.back().first->func_graph()->ToString();
  440. }
  441. graph_infer_stack.pop_back();
  442. }
  443. void TraceGraphEvalStackPrepare(const TraceGraphEvalStack &graphEvals) {
  444. graph_infer_stack.insert(graph_infer_stack.end(), graphEvals.begin(), graphEvals.end());
  445. }
  446. void TraceEvalCNodeStackPrepare(const TraceCNodeEvalStack &cnodeEvals) {
  447. cnode_debug_stack.insert(cnode_debug_stack.end(), cnodeEvals.begin(), cnodeEvals.end());
  448. }
  449. void TraceEvalCNodeEnter(const abstract::AnfNodeConfigPtr &node_config) { cnode_debug_stack.push_back(node_config); }
  450. void TraceEvalCNodeLeave() { cnode_debug_stack.pop_back(); }
  451. TraceCNodeEvalStack &GetCNodeDebugStack() { return cnode_debug_stack; }
  452. TraceGraphEvalStack &GetCurrenGraphEvalStack() { return graph_infer_stack; }
  453. void ClearTraceStack() {
  454. while (!graph_infer_stack.empty()) {
  455. graph_infer_stack.pop_back();
  456. }
  457. cnode_debug_stack.clear();
  458. }
  459. void GetTraceStackInfo(std::ostringstream &oss) {
  460. TraceGraphEval();
  461. std::ostringstream trace_info;
  462. GetEvalStackInfo(trace_info);
  463. if (trace_info.str().empty()) {
  464. DebugInfoPtr debug_info = TraceManager::GetParseOrResolveDebugInfo();
  465. if (debug_info != nullptr) {
  466. oss << "\n\n# " << trace::GetDebugInfo(debug_info);
  467. }
  468. } else {
  469. oss << trace_info.str();
  470. }
  471. }
  472. // Register trace provider to LogWriter.
  473. struct TraceProviderRegister {
  474. TraceProviderRegister() { LogWriter::set_trace_provider(GetTraceStackInfo); }
  475. ~TraceProviderRegister() = default;
  476. } trace_provider_regsiter;
  477. // Register trace cnode provider to AbstractBase.
  478. struct TraceNodeProviderRegister {
  479. TraceNodeProviderRegister() {
  480. abstract::AbstractBase::set_trace_node_provider([](AnfNodePtr *node) {
  481. auto stack = GetCNodeDebugStack();
  482. if (!stack.empty()) {
  483. auto conf = stack.back();
  484. *node = conf->node();
  485. }
  486. });
  487. }
  488. ~TraceNodeProviderRegister() = default;
  489. } trace_node_provider_regsiter;
  490. } // namespace trace
  491. } // namespace mindspore