Skip to content

Commit 452d0d2

Browse files
committed
Code Review
1 parent f5bb567 commit 452d0d2

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

backends/qualcomm/_passes/convert_conv1d_to_conv2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def call(self, graph_module: torch.fx.GraphModule):
105105
padding = [0] + node.args[4] if num_args > 4 else [0, 0]
106106
if node.target == torch.ops.aten.conv1d.default:
107107
dilation = [1] + node.args[5] if num_args > 5 else [1, 1]
108-
groups = node.args[6] if num_args > 5 else 1
108+
groups = node.args[6] if num_args > 6 else 1
109109
conv_args = (
110110
qdq_node_after_unsqueeze,
111111
node.args[1],

backends/qualcomm/runtime/QnnBackendOptions.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@
77
*/
88
#pragma once
99

10+
#include <executorch/backends/qualcomm/runtime/QnnExecuTorch.h>
1011
#include <executorch/runtime/backend/interface.h>
1112
#include <executorch/runtime/backend/options.h>
1213

13-
#define QNN_RUNTIME_LOG_LEVEL "qnn_runtime_log_level"
14-
#define QNN_RUNTIME_HTP_PERFORMANCE_MODE "qnn_runtime_htp_performance_mode"
15-
#define QNN_RUNTIME_PROFILE_LEVEL "qnn_runtime_profile_level"
16-
1714
namespace executorch {
1815
namespace backends {
1916
namespace qnn {

backends/qualcomm/runtime/QnnExecuTorch.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
#include <stdint.h>
1717
#endif
1818

19+
#define QNN_BACKEND "QnnBackend"
20+
#define QNN_RUNTIME_LOG_LEVEL "qnn_runtime_log_level"
21+
#define QNN_RUNTIME_HTP_PERFORMANCE_MODE "qnn_runtime_htp_performance_mode"
22+
#define QNN_RUNTIME_PROFILE_LEVEL "qnn_runtime_profile_level"
23+
1924
#ifdef __cplusplus
2025
extern "C" {
2126
#endif // __cplusplus

backends/qualcomm/runtime/QnnExecuTorchBackend.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ namespace executorch {
1919
namespace backends {
2020
namespace qnn {
2121

22-
constexpr const char* QNN_BACKEND = "QnnBackend";
2322
class QnnExecuTorchBackend final
2423
: public ::executorch::runtime::BackendInterface {
2524
public:

examples/qualcomm/executor_runner/qnn_executor_runner.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@
1717
* Currently we assume that the outputs are all fp32 tensors.
1818
*/
1919

20-
#include <executorch/backends/qualcomm/runtime/QnnBackendOptions.h>
2120
#include <executorch/backends/qualcomm/runtime/QnnExecuTorch.h>
22-
#include <executorch/backends/qualcomm/runtime/QnnExecuTorchBackend.h>
2321
#include <executorch/devtools/etdump/etdump_flatcc.h>
2422
#include <executorch/extension/data_loader/file_data_loader.h>
2523
#include <executorch/extension/runner_util/inputs.h>
26-
#include <executorch/runtime/backend/backend_option_context.h>
2724
#include <executorch/runtime/backend/interface.h>
2825
#include <executorch/runtime/backend/options.h>
2926
#include <executorch/runtime/core/memory_allocator.h>
@@ -114,7 +111,6 @@ DEFINE_int32(
114111

115112
using executorch::aten::Tensor;
116113
using executorch::aten::TensorImpl;
117-
using executorch::backends::qnn::QNN_BACKEND;
118114
using executorch::etdump::ETDumpGen;
119115
using executorch::etdump::ETDumpResult;
120116
using executorch::extension::FileDataLoader;

0 commit comments

Comments
 (0)