Skip to content

Commit 27eac48

Browse files
authored
Fix lint (#6606)
1 parent 91c382d commit 27eac48

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

backends/qualcomm/runtime/backends/QnnProfiler.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ QnnProfile::QnnProfile(
2323
QnnProfile_Level_t qnnProfileLevel = 0;
2424
if (profile_level == QnnExecuTorchProfileLevel::kProfileBasic) {
2525
qnnProfileLevel = QNN_PROFILE_LEVEL_BASIC;
26-
} else if (profile_level == QnnExecuTorchProfileLevel::kProfileDetailed
27-
|| profile_level == QnnExecuTorchProfileLevel::kProfileOptrace) {
26+
} else if (
27+
profile_level == QnnExecuTorchProfileLevel::kProfileDetailed ||
28+
profile_level == QnnExecuTorchProfileLevel::kProfileOptrace) {
2829
qnnProfileLevel = QNN_PROFILE_LEVEL_DETAILED;
2930
} else {
3031
QNN_EXECUTORCH_LOG_WARN("Invalid profile level");
@@ -46,15 +47,17 @@ QnnProfile::QnnProfile(
4647

4748
if (profile_level == QnnExecuTorchProfileLevel::kProfileOptrace) {
4849
if (handle_ == nullptr) {
49-
QNN_EXECUTORCH_LOG_WARN("Prfoile handle is null, cannot enable optrace");
50+
QNN_EXECUTORCH_LOG_WARN(
51+
"Prfoile handle is null, cannot enable optrace");
5052
return;
5153
}
5254

5355
QnnProfile_Config_t qnnProfileConfig = QNN_PROFILE_CONFIG_INIT;
5456
qnnProfileConfig.option = QNN_PROFILE_CONFIG_OPTION_ENABLE_OPTRACE;
5557
std::array<const QnnProfile_Config_t*, 2> profileConfigs = {
5658
&qnnProfileConfig, nullptr};
57-
error = qnn_interface.qnn_profile_set_config(handle_, profileConfigs.data());
59+
error =
60+
qnn_interface.qnn_profile_set_config(handle_, profileConfigs.data());
5861

5962
if (error != QNN_SUCCESS) {
6063
QNN_EXECUTORCH_LOG_WARN(

backends/qualcomm/utils/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,7 @@ def generate_qnn_executorch_compiler_spec(
833833
qnn_executorch_options.library_path = "libQnnSaver.so"
834834

835835
if optrace:
836-
qnn_executorch_options.profile_level = (
837-
QnnExecuTorchProfileLevel.kProfileOptrace
838-
)
836+
qnn_executorch_options.profile_level = QnnExecuTorchProfileLevel.kProfileOptrace
839837
elif profile:
840838
qnn_executorch_options.profile_level = (
841839
QnnExecuTorchProfileLevel.kProfileDetailed

0 commit comments

Comments
 (0)