From 8400d1eb522c78f045a08a5110f22095d2c594b4 Mon Sep 17 00:00:00 2001 From: huxianglong Date: Wed, 18 Dec 2024 10:48:01 +0800 Subject: [PATCH] change log level --- profiler/advisor/analyzer/comparison/comparison_checker.py | 2 +- profiler/advisor/analyzer/computation/profiling_analyzer.py | 2 +- .../analyzer/schedule/dispatch/timeline_op_dispatch_analyzer.py | 2 +- profiler/advisor/analyzer/schedule/gc/gc_analyzer.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/profiler/advisor/analyzer/comparison/comparison_checker.py b/profiler/advisor/analyzer/comparison/comparison_checker.py index 4fa5f082c..7c85dcf2c 100644 --- a/profiler/advisor/analyzer/comparison/comparison_checker.py +++ b/profiler/advisor/analyzer/comparison/comparison_checker.py @@ -68,7 +68,7 @@ class ComparisonChecker: return self.compare_mode = compare_mode if ("Api" in compare_mode) and self.benchmark_profiling_path.endswith("ascend_ms"): - logger.warning("The current compare mode %s does not support Mindspore.", compare_mode) + logger.info("The current compare mode %s does not support Mindspore.", compare_mode) return compare_interface = ComparisonInterface(self.profiling_path, self.benchmark_profiling_path, self.step, self.benchmark_step) diff --git a/profiler/advisor/analyzer/computation/profiling_analyzer.py b/profiler/advisor/analyzer/computation/profiling_analyzer.py index dab4c7d95..866dcc022 100644 --- a/profiler/advisor/analyzer/computation/profiling_analyzer.py +++ b/profiler/advisor/analyzer/computation/profiling_analyzer.py @@ -91,7 +91,7 @@ class DynamicShapeAnalyzer(ProfilingAnalyzer): def __init__(self, collection_path, **kwargs) -> None: super().__init__(collection_path, **kwargs) if collection_path.endswith("ascend_ms"): - logger.warning("Dynamic shape analyzer does not support Mindspore.") + logger.info("Dynamic shape analyzer does not support Mindspore.") return self.checker = DynamicShapeChecker(self.cann_version) diff --git a/profiler/advisor/analyzer/schedule/dispatch/timeline_op_dispatch_analyzer.py b/profiler/advisor/analyzer/schedule/dispatch/timeline_op_dispatch_analyzer.py index a722ee0e1..9d3e88b7b 100644 --- a/profiler/advisor/analyzer/schedule/dispatch/timeline_op_dispatch_analyzer.py +++ b/profiler/advisor/analyzer/schedule/dispatch/timeline_op_dispatch_analyzer.py @@ -51,7 +51,7 @@ class OpDispatchAnalyzer(BaseAnalyzer): :return: result """ if "mindspore" in self.profiling_type: - logger.warning("The analyzer %s does not support MindSpore.", self.__class__.__name__) + logger.info("The analyzer %s does not support MindSpore.", self.__class__.__name__) return self.result self.get_op_compile_info(self.dataset) self.make_record(self.result) diff --git a/profiler/advisor/analyzer/schedule/gc/gc_analyzer.py b/profiler/advisor/analyzer/schedule/gc/gc_analyzer.py index 8c77e93b3..f67b2293a 100644 --- a/profiler/advisor/analyzer/schedule/gc/gc_analyzer.py +++ b/profiler/advisor/analyzer/schedule/gc/gc_analyzer.py @@ -37,7 +37,7 @@ class GcAnalyzer(BaseAnalyzer): @BaseAnalyzer.check_data((ScheduleAnalysisDataset.get_key(),)) def optimize(self, **kwargs): if "mindspore" in self.profiling_type: - logger.warning("The analyzer %s does not support MindSpore.", self.__class__.__name__) + logger.info("The analyzer %s does not support MindSpore.", self.__class__.__name__) return self.result gc_checker = GcChecker() gc_checker.check_gc(self.timeline_event_dataset, rank=kwargs.get("rank"), stage=kwargs.get("stage")) -- Gitee