Home
last modified time | relevance | path

Searched refs:FuncGraphTransaction (Results 1 – 7 of 7) sorted by relevance

/third_party/mindspore/mindspore/core/ir/
Dmanager.h54 class FuncGraphTransaction; variable
305 FuncGraphTransaction Transact();
377 class FuncGraphTransaction {
379 explicit FuncGraphTransaction(FuncGraphManager *manager) : manager_(manager) {} in FuncGraphTransaction() function
380 FuncGraphTransaction() : manager_(nullptr) {} in FuncGraphTransaction() function
381 ~FuncGraphTransaction() = default;
383 FuncGraphTransaction(const FuncGraphTransaction &other) = delete;
384 FuncGraphTransaction &operator=(const FuncGraphTransaction &other) = delete;
386 FuncGraphTransaction(FuncGraphTransaction &&other) = default;
387 FuncGraphTransaction &operator=(FuncGraphTransaction &&other) = default;
[all …]
Dmanager.cc775 void FuncGraphTransaction::SetParameters(FuncGraphPtr fg, const std::vector<AnfNodePtr> &params) { in SetParameters()
779 void FuncGraphTransaction::AddParameter(FuncGraphPtr fg, const AnfNodePtr &param) { in AddParameter()
783 void FuncGraphTransaction::InsertFrontParameter(FuncGraphPtr fg, const AnfNodePtr &param) { in InsertFrontParameter()
787 bool FuncGraphTransaction::Replace(const AnfNodePtr &old_node, const AnfNodePtr &new_node) { in Replace()
802 void FuncGraphTransaction::SetEdge(const AnfNodePtr &src_node, int k, const AnfNodePtr &v) { in SetEdge()
814 void FuncGraphTransaction::AddEdge(const AnfNodePtr &src_node, const AnfNodePtr &v) { in AddEdge()
823 void FuncGraphTransaction::Commit() { manager_->CommitChanges(std::move(changes_)); } in Commit()
Dfunc_graph_cloner.h99 void SetEdges(const FuncGraphPtr &func_graph, FuncGraphTransaction *tx);
Dfunc_graph_cloner.cc452 void Cloner::SetEdges(const FuncGraphPtr &func_graph, FuncGraphTransaction *tx) { in SetEdges()
/third_party/mindspore/mindspore/lite/tools/optimizer/graph/
Dslice_prepose_pass.cc986 std::shared_ptr<FuncGraphTransaction> tr = std::make_shared<FuncGraphTransaction>(manager.get()); in PreposeWithMatmul()
1144 std::shared_ptr<FuncGraphTransaction> tr = std::make_shared<FuncGraphTransaction>(manager.get()); in PreposeWithFullConnection()
1244 std::shared_ptr<FuncGraphTransaction> tr = std::make_shared<FuncGraphTransaction>(manager.get()); in PreposeWithArithmetic()
1446 std::shared_ptr<FuncGraphTransaction> tr = std::make_shared<FuncGraphTransaction>(manager.get()); in MergeParallelSlice()
Dslice_prepose_pass.h33 using TransactionPtr = std::shared_ptr<mindspore::FuncGraphTransaction>;
/third_party/mindspore/mindspore/ccsrc/vm/
Dtransform.cc420 const FuncGraphManagerPtr &manager_ptr, FuncGraphTransaction *const tr, const FuncGraphSet &fgs, in TraverseGraphMap()
490 FuncGraphTransaction tr = manager_ptr->Transact(); in WrapPrimitives()