12
12
_ (uint8_t , Byte) \
13
13
_(int8_t , Char)
14
14
15
+ using ::executorch::aten::optional;
16
+ using ::executorch::aten::ScalarType;
17
+ using ::executorch::aten::Tensor;
18
+ using ::executorch::runtime::KernelRuntimeContext;
19
+
15
20
namespace cadence {
16
21
namespace impl {
17
22
namespace HiFi {
@@ -36,31 +41,31 @@ ::executorch::aten::Tensor& div_out_mode(
36
41
::executorch::aten::optional<::executorch::aten::string_view> mode,
37
42
::executorch::aten::Tensor& out);
38
43
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,
44
49
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,
48
53
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);
51
56
52
57
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,
57
62
int64_t in_zero_point,
58
63
int64_t weight_zero_point,
59
64
int64_t out_multiplier,
60
65
int64_t out_shift,
61
66
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);
64
69
65
70
} // namespace native
66
71
} // namespace HiFi
0 commit comments