|
6 | 6 | * LICENSE file in the root directory of this source tree. |
7 | 7 | */ |
8 | 8 |
|
9 | | -#include <executorch/backends/cadence/hifi/kernels/kernels.h> |
10 | 9 | #include <executorch/backends/cadence/hifi/operators/operators.h> |
11 | | -#include <executorch/runtime/kernel/kernel_includes.h> |
12 | | -#include <on_device_ai/Assistant/Jarvis/min_runtime/operators/generic/op_quantized_linear.h> |
13 | | -#include <xa_nnlib_kernels_api.h> |
14 | | -#include <xtensa/tie/xt_datacache.h> |
| 10 | + |
15 | 11 | #include <algorithm> |
16 | 12 | #include <cmath> |
17 | 13 | #include <optional> |
18 | 14 |
|
19 | | -namespace impl { |
20 | | -namespace HiFi { |
21 | | -namespace native { |
| 15 | +#include <xa_nnlib_api.h> |
| 16 | +#include <xtensa/tie/xt_datacache.h> |
| 17 | + |
| 18 | +#include <executorch/backends/cadence/generic/operators/op_quantized_linear.h> |
| 19 | +#include <executorch/backends/cadence/hifi/kernels/kernels.h> |
| 20 | +#include <executorch/runtime/kernel/kernel_includes.h> |
| 21 | + |
| 22 | +namespace impl::HiFi::native { |
22 | 23 |
|
23 | 24 | using ::executorch::aten::ScalarType; |
24 | 25 | using ::executorch::aten::Tensor; |
@@ -265,16 +266,16 @@ void quantized_linear_out( |
265 | 266 | } |
266 | 267 |
|
267 | 268 | void quantized_linear_per_tensor_out( |
268 | | - __ET_UNUSED KernelRuntimeContext& ctx, |
| 269 | + KernelRuntimeContext& ctx, |
269 | 270 | const Tensor& in, |
270 | 271 | const Tensor& weight, |
271 | 272 | const Tensor& bias, |
272 | | - int64_t in_zero_point, |
273 | | - int64_t weight_zero_point, |
274 | | - int64_t out_multiplier, |
275 | | - int64_t out_shift, |
276 | | - int64_t out_zero_point, |
277 | | - __ET_UNUSED const optional<Tensor>& offset, |
| 273 | + const int64_t in_zero_point, |
| 274 | + const int64_t weight_zero_point, |
| 275 | + const int64_t out_multiplier, |
| 276 | + const int64_t out_shift, |
| 277 | + const int64_t out_zero_point, |
| 278 | + const optional<Tensor>& offset, |
278 | 279 | Tensor& out) { |
279 | 280 | if (out.scalar_type() == ::executorch::aten::ScalarType::Short && |
280 | 281 | in.scalar_type() == ::executorch::aten::ScalarType::Short && |
@@ -321,6 +322,4 @@ void quantized_linear_per_tensor_out( |
321 | 322 | } |
322 | 323 | } |
323 | 324 |
|
324 | | -} // namespace native |
325 | | -} // namespace HiFi |
326 | | -} // namespace impl |
| 325 | +} // namespace impl::HiFi::native |
0 commit comments