Skip to content

Commit 184fba5

Browse files
authored
Fix linter errors in OSS (#10650)
Summary: As titled Differential Revision: D74043490
1 parent 304cd7b commit 184fba5

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

backends/cadence/hifi/operators/operators.h

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
_(uint8_t, Byte) \
1313
_(int8_t, Char)
1414

15+
using ::executorch::aten::optional;
16+
using ::executorch::aten::ScalarType;
17+
using ::executorch::aten::Tensor;
18+
using ::executorch::runtime::KernelRuntimeContext;
19+
1520
namespace cadence {
1621
namespace impl {
1722
namespace HiFi {
@@ -36,31 +41,31 @@ ::executorch::aten::Tensor& div_out_mode(
3641
::executorch::aten::optional<::executorch::aten::string_view> mode,
3742
::executorch::aten::Tensor& out);
3843

39-
void quantized_linear_out(
40-
__ET_UNUSED ::executorch::runtime::KernelRuntimeContext& ctx,
41-
const ::executorch::aten::Tensor& in,
42-
const ::executorch::aten::Tensor& weight,
43-
const ::executorch::aten::Tensor& bias,
44+
void quantized_linear_out(
45+
__ET_UNUSED KernelRuntimeContext& ctx,
46+
const Tensor& in,
47+
const Tensor& weight,
48+
const Tensor& bias,
4449
int64_t in_zero_point,
45-
const ::executorch::aten::Tensor& weight_zero_point,
46-
const ::executorch::aten::Tensor& out_multiplier,
47-
const ::executorch::aten::Tensor& out_shift,
50+
const Tensor& weight_zero_point,
51+
const Tensor& out_multiplier,
52+
const Tensor& out_shift,
4853
int64_t out_zero_point,
49-
__ET_UNUSED const ::executorch::aten::optional<::executorch::aten::Tensor>& offset,
50-
::executorch::aten::Tensor& out);
54+
__ET_UNUSED const optional<Tensor>& offset,
55+
Tensor& out);
5156

5257
void quantized_linear_per_tensor_out(
53-
__ET_UNUSED ::executorch::runtime::KernelRuntimeContext& ctx,
54-
const ::executorch::aten::Tensor& in,
55-
const ::executorch::aten::Tensor& weight,
56-
const ::executorch::aten::Tensor& bias,
58+
__ET_UNUSED KernelRuntimeContext& ctx,
59+
const Tensor& in,
60+
const Tensor& weight,
61+
const Tensor& bias,
5762
int64_t in_zero_point,
5863
int64_t weight_zero_point,
5964
int64_t out_multiplier,
6065
int64_t out_shift,
6166
int64_t out_zero_point,
62-
__ET_UNUSED const ::executorch::aten::optional<::executorch::aten::Tensor>& offset,
63-
::executorch::aten::Tensor& out);
67+
__ET_UNUSED const optional<Tensor>& offset,
68+
Tensor& out);
6469

6570
} // namespace native
6671
} // namespace HiFi

0 commit comments

Comments
 (0)