Skip to content

Fix linter errors in OSS #10650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions backends/cadence/hifi/operators/operators.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
_(uint8_t, Byte) \
_(int8_t, Char)

using ::executorch::aten::optional;
using ::executorch::aten::ScalarType;
using ::executorch::aten::Tensor;
using ::executorch::runtime::KernelRuntimeContext;

namespace cadence {
namespace impl {
namespace HiFi {
Expand All @@ -36,31 +41,31 @@ ::executorch::aten::Tensor& div_out_mode(
::executorch::aten::optional<::executorch::aten::string_view> mode,
::executorch::aten::Tensor& out);

void quantized_linear_out(
__ET_UNUSED ::executorch::runtime::KernelRuntimeContext& ctx,
const ::executorch::aten::Tensor& in,
const ::executorch::aten::Tensor& weight,
const ::executorch::aten::Tensor& bias,
void quantized_linear_out(
__ET_UNUSED KernelRuntimeContext& ctx,
const Tensor& in,
const Tensor& weight,
const Tensor& bias,
int64_t in_zero_point,
const ::executorch::aten::Tensor& weight_zero_point,
const ::executorch::aten::Tensor& out_multiplier,
const ::executorch::aten::Tensor& out_shift,
const Tensor& weight_zero_point,
const Tensor& out_multiplier,
const Tensor& out_shift,
int64_t out_zero_point,
__ET_UNUSED const ::executorch::aten::optional<::executorch::aten::Tensor>& offset,
::executorch::aten::Tensor& out);
__ET_UNUSED const optional<Tensor>& offset,
Tensor& out);

void quantized_linear_per_tensor_out(
__ET_UNUSED ::executorch::runtime::KernelRuntimeContext& ctx,
const ::executorch::aten::Tensor& in,
const ::executorch::aten::Tensor& weight,
const ::executorch::aten::Tensor& bias,
__ET_UNUSED KernelRuntimeContext& ctx,
const Tensor& in,
const Tensor& weight,
const Tensor& bias,
int64_t in_zero_point,
int64_t weight_zero_point,
int64_t out_multiplier,
int64_t out_shift,
int64_t out_zero_point,
__ET_UNUSED const ::executorch::aten::optional<::executorch::aten::Tensor>& offset,
::executorch::aten::Tensor& out);
__ET_UNUSED const optional<Tensor>& offset,
Tensor& out);

} // namespace native
} // namespace HiFi
Expand Down
Loading