From 585c061c6a4a39a6385906b2fc5b5785469515a4 Mon Sep 17 00:00:00 2001 From: Zonglin Peng Date: Wed, 9 Oct 2024 14:36:50 -0700 Subject: [PATCH] add missing namespace of getLeadingDims in hifi (#5997) Summary: ~ Reviewed By: mcremon-meta Differential Revision: D64063692 --- backends/cadence/hifi/operators/quantized_layer_norm.cpp | 1 + backends/cadence/hifi/operators/quantized_linear_out.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/backends/cadence/hifi/operators/quantized_layer_norm.cpp b/backends/cadence/hifi/operators/quantized_layer_norm.cpp index 3e909f92ee0..62298bff092 100644 --- a/backends/cadence/hifi/operators/quantized_layer_norm.cpp +++ b/backends/cadence/hifi/operators/quantized_layer_norm.cpp @@ -13,6 +13,7 @@ #include using executorch::aten::Tensor; +using executorch::runtime::getLeadingDims; using executorch::runtime::KernelRuntimeContext; namespace impl { diff --git a/backends/cadence/hifi/operators/quantized_linear_out.cpp b/backends/cadence/hifi/operators/quantized_linear_out.cpp index f72b2ba3bf8..8a0fa5d4203 100644 --- a/backends/cadence/hifi/operators/quantized_linear_out.cpp +++ b/backends/cadence/hifi/operators/quantized_linear_out.cpp @@ -16,6 +16,7 @@ namespace HiFi { namespace native { using executorch::aten::Tensor; +using executorch::runtime::getLeadingDims; using executorch::runtime::KernelRuntimeContext; void quantized_linear_out(