Home
last modified time | relevance | path

Searched refs:ResourcePtr (Results 1 – 25 of 26) sorted by relevance

12

/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Daction.h31 using ActionItem = std::pair<std::string, std::function<bool(ResourcePtr)>>;
33 bool ParseAction(const ResourcePtr &res);
34 bool SymbolResolveAction(const ResourcePtr &res);
35 bool AutoMonadAction(const ResourcePtr &res);
36 bool AbstractSpecializeAction(const ResourcePtr &res);
37 bool GeOptimizeAction(const ResourcePtr &res);
38 bool VmOptimizeAction(const ResourcePtr &res);
39 bool PynativeElimOpt(const ResourcePtr &res);
40 bool TaskEmitAction(const ResourcePtr &res);
41 bool ExecuteAction(const ResourcePtr &res);
[all …]
Dpass.h34 using PassItem = std::pair<std::string, std::function<bool(ResourcePtr)>>;
41 bool CconvPass(const ResourcePtr &res);
42 bool PipelineSplitPass(const ResourcePtr &res);
43 bool ValidatePass(const ResourcePtr &res);
44 bool ConvertPrepareAdapt(const ResourcePtr &res);
45 bool AddCacheEmbeddingPass(const ResourcePtr &res);
46 bool InferenceOptPreparePass(const ResourcePtr &res);
48 bool PynativeOptPass(const ResourcePtr &res);
50 FuncGraphPtr PrimBpOptPassStep1(const opt::irpass::OptimizeIRPassLib &irpass, const ResourcePtr &re…
51 FuncGraphPtr PrimBpOptPassStep2(const opt::irpass::OptimizeIRPassLib &irpass, const ResourcePtr &re…
[all …]
Dpass.cc65 void DoRenormalize(const bool &changed, const FuncGraphPtr &func_graph, const ResourcePtr &res) { in DoRenormalize()
80 bool SimplifyDataStructuresPass(const ResourcePtr &res) { in SimplifyDataStructuresPass()
89 bool TransformTopGraphPass(const ResourcePtr &res) { in TransformTopGraphPass()
108 bool CleanAfterOptAPass(const ResourcePtr &res) { in CleanAfterOptAPass()
117 FuncGraphPtr PrimBpOptPassStep1(const opt::irpass::OptimizeIRPassLib &irpass, const ResourcePtr &re… in PrimBpOptPassStep1()
143 FuncGraphPtr PrimBpOptPassStep2(const opt::irpass::OptimizeIRPassLib &irpass, const ResourcePtr &re… in PrimBpOptPassStep2()
173 FuncGraphPtr BpropGraphFinalOptPass(const ResourcePtr &res) { in BpropGraphFinalOptPass()
517 void InitOpt(const ResourcePtr &res) { in InitOpt()
547 bool OptPassGroup(const ResourcePtr &res, const std::string &name) { in OptPassGroup()
566 bool OptPassA1A2(const ResourcePtr &res) { return OptPassGroup(res, "a1a2"); } in OptPassA1A2()
[all …]
Daction.cc82 void ResetMindRTEnable(const ResourcePtr &res) { in ResetMindRTEnable()
108 void TaskEmitActionForMindRT(const ResourcePtr &res) { in TaskEmitActionForMindRT()
119 void ExecuteActionForMindRT(const ResourcePtr &res) { in ExecuteActionForMindRT()
192 abstract::AnalysisResult AbstractAnalyze(const ResourcePtr &res, const FuncGraphPtr &func_graph, in AbstractAnalyze()
229 FuncGraphPtr ProgramSpecialize(const ResourcePtr &res, const FuncGraphPtr &func_graph, in ProgramSpecialize()
242 FuncGraphPtr Renormalize(const ResourcePtr &res, const FuncGraphPtr &func_graph, in Renormalize()
266 const FuncGraphPtr GetLoadedGraph(const ResourcePtr &res) { in GetLoadedGraph()
290 void CheckRootInputShapeAndType(const ResourcePtr &res, const FuncGraphPtr &loaded_graph) { in CheckRootInputShapeAndType()
341 bool ParseAction(const ResourcePtr &res) { in ParseAction()
385 bool CombineLikeGraphs(const ResourcePtr &res) { in CombineLikeGraphs()
[all …]
Dpipeline.h48 …Pipeline(const ResourcePtr &res, const std::vector<ActionItem> &actions) : resource_(res), actions… in Pipeline()
54 ResourcePtr resource() { return resource_; } in resource()
57 ResourcePtr resource_;
85 ResourcePtr GetResource(const std::string &phase);
175 void ProcessVmArgInner(const py::tuple &args, const ResourcePtr &res, VectorRef *const arg_list);
Dpipeline_split.h25 bool PipelineSplit(const ResourcePtr &res);
Dbase.h34 ResourcePtr resource;
Dpipeline.cc155 void SetLoopCount(const ResourcePtr &resource) { in SetLoopCount()
173 void GetCachedFuncGraph(const ResourcePtr &resource, const std::string &queue_name) { in GetCachedFuncGraph()
210 void CacheFuncGraph(const ResourcePtr &resource) { in CacheFuncGraph()
334 ResourcePtr GraphExecutorPy::GetResource(const std::string &phase) { in GetResource()
382 ResourcePtr res = GetResource(phase); in GetVmEvalFunc()
686 std::vector<ActionItem> GetPipeline(const ResourcePtr &resource, const std::string &phase, bool use… in GetPipeline()
754 ResourcePtr resource = std::make_shared<Resource>(source_obj); in CompileInner()
819 ResourcePtr res = GetResource(py::cast<std::string>(phase)); in ReleaseResource()
874 void CacheValidateFuncGraph(const std::string &phase, const ResourcePtr &resource) { in CacheValidateFuncGraph()
954 void ProcessVmArgInner(const py::tuple &args, const ResourcePtr &res, VectorRef *const arg_list) { in ProcessVmArgInner()
Dresource.h104 using ResourcePtr = std::shared_ptr<pipeline::Resource>; variable
Dpipeline_split.cc71 bool PipelineSplit(const ResourcePtr &res) { in PipelineSplit()
/third_party/flutter/engine/flutter/shell/common/
Dpipeline.h33 using ResourcePtr = std::unique_ptr<Resource>; variable
63 void Complete(ResourcePtr resource) { in Complete()
76 using Continuation = std::function<void(ResourcePtr, size_t)>;
123 using Consumer = std::function<void(ResourcePtr)>;
135 ResourcePtr resource; in Consume()
165 std::deque<std::pair<ResourcePtr, size_t>> queue_;
167 void ProducerCommit(ResourcePtr resource, size_t trace_id) { in ProducerCommit()
177 void ProducerCommitFront(ResourcePtr resource, size_t trace_id) { in ProducerCommitFront()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dpy_pass_manager.h65 void SetResource(pipeline::ResourcePtr resource) { resource_ = resource; } in SetResource()
66 pipeline::ResourcePtr GetResource() { return resource_; } in GetResource()
77 pipeline::ResourcePtr resource_;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/
DCompileOnDemandLayer.h181 ResourceOwnerImpl(ResourcePtrT ResourcePtr) in ResourceOwnerImpl() argument
182 : ResourcePtr(std::move(ResourcePtr)) {} in ResourceOwnerImpl()
184 ResourceT& getResource() const override { return *ResourcePtr; } in getResource()
187 ResourcePtrT ResourcePtr;
192 wrapOwnership(ResourcePtrT ResourcePtr) { in wrapOwnership() argument
194 return std::make_unique<RO>(std::move(ResourcePtr)); in wrapOwnership()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/
Dgrad.h29 using ResourcePtr = std::shared_ptr<pipeline::Resource>; variable
Dgrad.cc27 FuncGraphPtr PartialEliminateOptPass(const ResourcePtr &resource, const FuncGraphPtr &func_graph) { in PartialEliminateOptPass()
Dprim_bprop_optimizer.h147 FuncGraphPtr BpropGraphFinalOpt(const pipeline::ResourcePtr &res) const;
Dprim_bprop_optimizer.cc300 pipeline::ResourcePtr resource = std::make_shared<pipeline::Resource>(); in PrimBpropOptStep2()
310 FuncGraphPtr PrimBpropOptimizer::BpropGraphFinalOpt(const pipeline::ResourcePtr &res) const { in BpropGraphFinalOpt()
Dkpynative.cc55 FuncGraphPtr ZerosLikePrimOptPass(const pipeline::ResourcePtr &res) { in ZerosLikePrimOptPass()
88 pipeline::ResourcePtr resource = std::make_shared<pipeline::Resource>(); in GetZerosLike()
110 pipeline::ResourcePtr resource = std::make_shared<pipeline::Resource>(); in GetHyperAdd()
149 pipeline::ResourcePtr resource = std::make_shared<pipeline::Resource>(); in GetOnesLike()
/third_party/mindspore/tests/ut/cpp/optimizer/
Doptimizer_test.cc45 pipeline::ResourcePtr res = std::make_shared<pipeline::Resource>(); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/
Dpynative_execute.h64 …TopCellInfo(bool topest, size_t grad_order, pipeline::ResourcePtr r, FuncGraphPtr df, std::string … in TopCellInfo()
88 pipeline::ResourcePtr resource() const { return resource_; } in resource()
128 pipeline::ResourcePtr resource_{nullptr};
212 void SaveForwardTensorInfoInBpropGraph(const pipeline::ResourcePtr &resource) const;
228 …Cnode(const py::object &cell, const py::tuple &forward_args, const pipeline::ResourcePtr &resource,
/third_party/mindspore/mindspore/ccsrc/ps/
Dutil.h57 static bool FuseServerCommOps(const pipeline::ResourcePtr &res);
Dutil.cc131 bool Util::FuseServerCommOps(const pipeline::ResourcePtr &res) { in FuseServerCommOps()
/third_party/mindspore/tests/ut/cpp/common/
Dbackend_common_test.cc78 pipeline::ResourcePtr resource_ = std::make_shared<pipeline::Resource>(); in GetFuncGraph()
/third_party/mindspore/tests/ut/cpp/optimizer/ad/
Dkpynative_test.cc36 pipeline::ResourcePtr resource = std::make_shared<pipeline::Resource>();
Dad_test.cc40 pipeline::ResourcePtr resourcePtr = std::make_shared<pipeline::Resource>();

12