Searched refs:ScopePtr (Results 1 – 20 of 20) sorted by relevance
26 using ScopePtr = std::shared_ptr<Scope>; variable27 extern const ScopePtr kDefaultScope;49 void EnterScope(const ScopePtr &scope);50 void LeaveScope(const ScopePtr &scope) noexcept;51 ScopePtr GetCurrentScope();56 std::stack<ScopePtr> scope_stack_;62 explicit ScopeGuard(const ScopePtr &scope) { in ScopeGuard()69 ScopePtr scope_;
19 const ScopePtr kDefaultScope = std::make_shared<Scope>("Default");21 void ScopeManager::EnterScope(const ScopePtr &scope) { in EnterScope()27 void ScopeManager::LeaveScope(const ScopePtr &scope) noexcept { in LeaveScope()32 ScopePtr ScopeManager::GetCurrentScope() { in GetCurrentScope()
66 void set_scope(const ScopePtr &scope) { scope_ = scope; } in set_scope()67 const ScopePtr scope() const { return scope_; } in scope()112 ScopePtr scope_;123 const AnfNodePtrList &func_graph_args, const ScopePtr &scope = nullptr);
81 …ScopePtr scope = ((node->scope() == kDefaultScope) && (this->scope() != nullptr)) ? this->scope() … in CloneParameter()93 …ScopePtr scope = ((node->scope() == kDefaultScope) && (this->scope() != nullptr)) ? this->scope() … in CloneCNode()103 …ScopePtr scope = ((node->scope() == kDefaultScope) && (this->scope() != nullptr)) ? this->scope() … in CloneValueNode()115 …ScopePtr scope = ((node->scope() == kDefaultScope) && (this->scope() != nullptr)) ? this->scope() … in CloneValueNode()701 const AnfNodePtrList &func_graph_args, const ScopePtr &scope) { in InlineClone()
124 ScopePtr scope() { return scope_; } in scope()125 void set_scope(const ScopePtr &scope) { scope_ = scope; } in set_scope()226 ScopePtr scope_;
303 …void MoveAllCNodeDropGraph(const FuncGraphPtr &source, const FuncGraphPtr &target, const ScopePtr …
652 const ScopePtr &scope) { in MoveAllCNodeDropGraph()
154 … const AnfNodePtr &tracking_id = nullptr, const ScopePtr &scope = kDefaultScope)163 ScopePtr GetScope() { return scope_; } in GetScope()180 ScopePtr scope_;
61 ScopePtr scope_;
258 MetaFuncGraphEvaluator(const MetaFuncGraphPtr &meta_func_graph, const ScopePtr &scope) in MetaFuncGraphEvaluator()274 ScopePtr scope_;
90 ScopePtr scope = kDefaultScope; in Run()192 ScopePtr scope = kDefaultScope; in Run()275 ScopePtr scope = kDefaultScope; in Run()1003 ScopePtr scope = kDefaultScope; in StaticGetter()1417 ScopePtr scope = out_conf->node()->scope(); in HandleDoSignature()
45 ScopePtr scope = (anf_node->scope() != kDefaultScope) ? anf_node->scope() : kDefaultScope; in CloneCNode()
92 ScopePtr scope = (orig_node->scope() != kDefaultScope) ? orig_node->scope() : kDefaultScope; in NewRecomputeNode()
135 ScopePtr scope = node->cast<CNodePtr>()->scope(); in operator()
290 ScopePtr scope = node->cast<CNodePtr>()->scope(); in operator()
706 ScopePtr scope = node->scope(); in operator()
284 ScopePtr scope = node->scope(); in ReplaceOneOp()
245 ScopePtr GetScopeForParseFunction();
249 ScopePtr Parser::GetScopeForParseFunction() { in GetScopeForParseFunction()250 ScopePtr scope = ScopeManager::GetInstance().GetCurrentScope(); in GetScopeForParseFunction()262 ScopePtr scope = GetScopeForParseFunction(); in ParseFunction()
203 ScopePtr scope = node->scope(); in InsertNode()237 ScopePtr scope = pre_node->scope(); in ReplaceNode()298 ScopePtr scope = node->scope(); in ForwardCommunication()662 ScopePtr scope = next_node->scope(); in SplitTensorList()745 ScopePtr scope = node->scope(); in StepReplaceOp()