@@ -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 (
0 commit comments