Home
last modified time | relevance | path

Searched refs:func_graphs_used_ (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/mindspore/core/ir/
Dfunc_graph.cc342 const FuncGraphCounterMap &FuncGraph::func_graphs_used() const { return func_graphs_used_; } in func_graphs_used()
349 func_graphs_used_.erase(source); in CopyFuncGraphsUsed()
352 void FuncGraph::ClearFuncGraphsUsed() { func_graphs_used_.clear(); } in ClearFuncGraphsUsed()
355 if (func_graphs_used_.count(fg) == 0) { in AddFuncGraphUsed()
356 func_graphs_used_[fg] = count; in AddFuncGraphUsed()
359 func_graphs_used_[fg] += count; in AddFuncGraphUsed()
365 if (func_graphs_used_.count(fg) != 0) { in DropFuncGraphUsed()
366 if (func_graphs_used_[fg] == 1) { in DropFuncGraphUsed()
367 (void)func_graphs_used_.erase(fg); in DropFuncGraphUsed()
370 func_graphs_used_[fg]--; in DropFuncGraphUsed()
[all …]
Dfunc_graph.h432 FuncGraphCounterMap func_graphs_used_; variable