Skip to content

Commit 37a4c6a

Browse files
author
Aswin B
committed
Correcting format errors and username
1 parent 0ce89a1 commit 37a4c6a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

mobile_back_qti/cpp/backend_qti/qti_backend_helper.cc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ limitations under the License.
1616
#include "qti_backend_helper.h"
1717

1818
#include <random>
19+
#include <sstream>
1920
#include <string>
2021
#include <vector>
21-
#include <sstream>
2222

2323
#include "DiagLog/IDiagLog.h"
2424
#include "DlContainer/DlContainer.h"
@@ -97,7 +97,8 @@ static Snpe_TensorShape_Handle_t calcStrides(
9797
return tensorShapeHandle;
9898
}
9999

100-
static Snpe_Runtime_t Str2Delegate(const snpe_runtimes_t delegate, bool isFatal = false) {
100+
static Snpe_Runtime_t Str2Delegate(const snpe_runtimes_t delegate,
101+
bool isFatal = false) {
101102
Snpe_Runtime_t runtime;
102103

103104
switch (delegate) {
@@ -124,8 +125,9 @@ static Snpe_Runtime_t Str2Delegate(const snpe_runtimes_t delegate, bool isFatal
124125
LOG(INFO) << "runtime " << delegate << " is available on this platform";
125126
} else {
126127
std::stringstream log_err_string;
127-
log_err_string << "runtime " << delegate << " is not available on this platform";
128-
if(isFatal)
128+
log_err_string << "runtime " << delegate
129+
<< " is not available on this platform";
130+
if (isFatal)
129131
LOG(FATAL) << log_err_string.str();
130132
else
131133
LOG(ERROR) << log_err_string.str();
@@ -881,4 +883,4 @@ void QTIBackendHelper::deinitSd() {
881883
delete sd_pipeline;
882884
sd_pipeline = nullptr;
883885
#endif
884-
}}}
886+
}

0 commit comments

Comments
 (0)