From 9e1f32700b77901e7d747a7cfbe85b1d4911c7ca Mon Sep 17 00:00:00 2001 From: wuyuhan Date: Tue, 18 Feb 2025 11:42:23 +0800 Subject: [PATCH] advisor operator_checker bug fix --- .../advisor/analyzer/computation/operator_checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/msprof_analyze/advisor/analyzer/computation/operator_checker.py b/profiler/msprof_analyze/advisor/analyzer/computation/operator_checker.py index ab9d4228b47..e0402e0bea3 100644 --- a/profiler/msprof_analyze/advisor/analyzer/computation/operator_checker.py +++ b/profiler/msprof_analyze/advisor/analyzer/computation/operator_checker.py @@ -301,7 +301,7 @@ class OperatorChecker(VersionControl): def format_suggestion_content(self, profiling_data: ProfilingDataset) -> None: if profiling_data.prof_type == EnumParamsParser().profiling_type.ascend_pytorch_profiler: self._suggestion.append(self.pytorch_op_tune_suggestion) - elif profiling_data.prof_type == EnumParamsParser.profiling_type.mslite: + elif profiling_data.prof_type == EnumParamsParser().profiling_type.mslite: self._suggestion.append(self.mslite_op_tune_suggestion) def _check_data(self, profiling_data): -- Gitee