parallel strategy remove graph name

This commit is contained in:
臧庆香 2022-03-26 17:03:07 +08:00
parent c43285327a
commit 4349a5e375
1 changed files with 2 additions and 1 deletions

View File

@ -38,12 +38,13 @@ namespace profiler {
namespace ascend {
bool has_save_parallel_strategy = false;
bool has_got_parallel_strategy_data = false;
bool profiling_parallel_strategy_enabled = false;
irpb::ProfilingParallel cache_profiling_parallel_pb;
bool IsProfilingParallelStrategyEnabled() {
auto ascend_profiler = AscendProfiler::GetInstance();
MS_EXCEPTION_IF_NULL(ascend_profiler);
if (!ascend_profiler->IsInitialized()) {
if (!profiling_parallel_strategy_enabled || !ascend_profiler->IsInitialized()) {
MS_LOG(INFO) << "Profiling parallel strategy is disabled.";
return false;
}