From 7c52d38657abf7ba13b39952e892d3a88545448e Mon Sep 17 00:00:00 2001 From: wuyuhan Date: Tue, 26 Nov 2024 11:29:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E7=BB=B4=E5=BA=A6block?= =?UTF-8?q?=20dim,=20operator=20bound=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- profiler/advisor/analyzer/computation/operator_checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/advisor/analyzer/computation/operator_checker.py b/profiler/advisor/analyzer/computation/operator_checker.py index 73ce3dfffb..a58fc0d895 100644 --- a/profiler/advisor/analyzer/computation/operator_checker.py +++ b/profiler/advisor/analyzer/computation/operator_checker.py @@ -321,9 +321,9 @@ class OperatorChecker(VersionControl): return details def format_suggestion_content(self, profiling_data: ProfilingDataset) -> None: - if profiling_data.PROF_TYPE == EnumParamsParser().profiling_type.ascend_pytorch_profiler: + if profiling_data.prof_type == EnumParamsParser().profiling_type.ascend_pytorch_profiler: self._SUGGESTION.append(self.PyTorch_OPERATOR_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_OPERATOR_TUNE_SUGGESTION) def _check_data(self, profiling_data): -- Gitee From 4226d22df2285f27dd13dc12f5ce13fd821ac65e Mon Sep 17 00:00:00 2001 From: wuyuhan Date: Tue, 26 Nov 2024 15:25:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?advisor=E8=AE=A1=E7=AE=97=E5=88=86=E6=9E=90?= =?UTF-8?q?block=20dim=E5=92=8Coperator=20bound=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- profiler/advisor/analyzer/computation/operator_checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/advisor/analyzer/computation/operator_checker.py b/profiler/advisor/analyzer/computation/operator_checker.py index 73ce3dfffb..a58fc0d895 100644 --- a/profiler/advisor/analyzer/computation/operator_checker.py +++ b/profiler/advisor/analyzer/computation/operator_checker.py @@ -321,9 +321,9 @@ class OperatorChecker(VersionControl): return details def format_suggestion_content(self, profiling_data: ProfilingDataset) -> None: - if profiling_data.PROF_TYPE == EnumParamsParser().profiling_type.ascend_pytorch_profiler: + if profiling_data.prof_type == EnumParamsParser().profiling_type.ascend_pytorch_profiler: self._SUGGESTION.append(self.PyTorch_OPERATOR_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_OPERATOR_TUNE_SUGGESTION) def _check_data(self, profiling_data): -- Gitee