Searched refs:GraphKernelFlags (Results 1 – 16 of 16) sorted by relevance
39 class GraphKernelFlags {41 static const GraphKernelFlags &GetInstance() { in GetInstance()42 static std::unique_ptr<GraphKernelFlags> flags(nullptr); in GetInstance()45 flags.reset(new GraphKernelFlags(contexts.first, contexts.second)); in GetInstance()57 GraphKernelFlags(const GraphKernelFlags &flags) = delete;58 ~GraphKernelFlags() = default;195 GraphKernelFlags(const std::string &graph_kernel_flags, bool enable_graph_kernel) in GraphKernelFlags() function
153 void GraphKernelFlags::Refresh() { in Refresh()171 void GraphKernelFlags::RegisterFlags(std::map<std::string, std::string> *flag_map) { in RegisterFlags()213 std::string GraphKernelFlags::DumpAllFlags() const { in DumpAllFlags()
32 : PassManager(name, true), stage_(stage), flags_(context::GraphKernelFlags::GetInstance()) {} in GraphKernelPassManager()46 const context::GraphKernelFlags &flags_;
127 …auto level = GetPassLevelByFlag(context::GraphKernelFlags::GetInstance().enable_trans_op_optimize); in HighLevelOpt1()161 auto level = GetPassLevelByFlag(context::GraphKernelFlags::GetInstance().enable_stitch_fusion); in HighLevelOpt2()165 …auto level_low_precision = GetPassLevelByFlag(context::GraphKernelFlags::GetInstance().enable_low_… in HighLevelOpt2()179 auto level = GetPassLevelByFlag(context::GraphKernelFlags::GetInstance().enable_parallel_fusion); in Combine()
98 const auto &flags = context::GraphKernelFlags::GetInstance(); in GetClusterableOpList()427 if (context::GraphKernelFlags::GetInstance().dump_as_text) { in CreateFuncGraph()506 if (context::GraphKernelFlags::GetInstance().dump_as_text) { in Run()
99 const auto &flags = context::GraphKernelFlags::GetInstance(); in GetExpandOps()
534 const auto &flags = context::GraphKernelFlags::GetInstance(); in GetExpressions()
879 const auto &flags = context::GraphKernelFlags::GetInstance(); in CollectSplitFlags()
53 if (context::GraphKernelFlags::GetInstance().IsEnableGraphKernel()) { in MatchSingleFusionPattern()
166 if (!context::GraphKernelFlags::GetInstance().IsEnableGraphKernel()) { in Optimize()230 if (!context::GraphKernelFlags::GetInstance().IsEnableGraphKernel()) { in GraphKernelOptimize()605 if (context::GraphKernelFlags::GetInstance().IsEnableGraphKernel()) { in UpdateOutputTensors()
1258 if (!context::GraphKernelFlags::GetInstance().IsEnableGraphKernel()) { in GraphKernelOptimize()
219 if (context::GraphKernelFlags::GetInstance().IsEnableGraphKernel()) { in OptimizeGraph()280 if (!context::GraphKernelFlags::GetInstance().IsEnableGraphKernel()) { in FuseOperators()
498 if (!context::GraphKernelFlags::GetInstance().IsEnableGraphKernel()) { in AscendBackendUBFusionOptimization()503 if (!context::GraphKernelFlags::GetInstance().IsEnableGraphKernel()) { in AscendBackendUBFusionOptimization()
579 auto &flags = context::GraphKernelFlags::GetInstance(); in CollectBuildAttrs()
471 enable_visit_kernel_cache_ = context::GraphKernelFlags::GetInstance().IsEnableGraphKernel(); in SetAllInfo()
77 enable_relation_cache_ = context::GraphKernelFlags::GetInstance().IsEnableGraphKernel(); in Init()