Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/core/ir/
Dfunc_graph.cc269 const AnfNodeCounterMap &FuncGraph::free_variables() const { return free_variables_; } in free_variables()
282 void FuncGraph::ClearFreeVariables() { free_variables_.clear(); } in ClearFreeVariables()
285 if (free_variables_.count(node) == 0) { in AddFreeVariable()
286 free_variables_[node] = count; in AddFreeVariable()
289 free_variables_[node] += count; in AddFreeVariable()
295 if (free_variables_.count(node) != 0) { in DropFreeVariable()
296 if (free_variables_[node] == 1) { in DropFreeVariable()
297 (void)free_variables_.erase(node); in DropFreeVariable()
300 free_variables_[node]--; in DropFreeVariable()
301 if (free_variables_[node] < 0) { in DropFreeVariable()
Dfunc_graph.h435 AnfNodeCounterMap free_variables_; variable