Skip to content

Commit

Permalink
Namespace related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushi-cad committed Nov 27, 2024
1 parent df69dfd commit a23b646
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backends/cadence/aot/functions_hifi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- op: add.out
kernels:
- arg_meta: null
kernel_name: impl::HiFi::add_out
kernel_name: cadence::impl::HiFi::add_out

- op: bmm.out
kernels:
Expand Down Expand Up @@ -80,7 +80,7 @@
- op: minimum.out
kernels:
- arg_meta: null
kernel_name: impl::HiFi::minimum_out
kernel_name: cadence::impl::HiFi::minimum_out

- op: mul.out
kernels:
Expand Down Expand Up @@ -110,7 +110,7 @@
- op: rsqrt.out
kernels:
- arg_meta: null
kernel_name: impl::HiFi::rsqrt_out
kernel_name: cadence::impl::HiFi::rsqrt_out

- op: sigmoid.out
kernels:
Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/hifi/operators/op_add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ using executorch::runtime::CppTypeToScalarType;
using executorch::runtime::KernelRuntimeContext;
using torch::executor::Error;

namespace cadence {
namespace impl {
namespace HiFi {
namespace native {
Expand Down Expand Up @@ -202,3 +203,4 @@ Tensor& add_out(
} // namespace native
} // namespace HiFi
} // namespace impl
} // namespace cadence
2 changes: 2 additions & 0 deletions backends/cadence/hifi/operators/op_minimum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ using torch::executor::apply_binary_elementwise_fn;
using torch::executor::Error;
using torch::executor::resize_to_broadcast_target_size;

namespace cadence {
namespace impl {
namespace HiFi {
namespace native {
Expand Down Expand Up @@ -169,3 +170,4 @@ Tensor& minimum_out(
} // namespace native
} // namespace HiFi
} // namespace impl
} // namespace cadence
2 changes: 2 additions & 0 deletions backends/cadence/hifi/operators/op_rsqrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ using exec_aten::ScalarType;
using exec_aten::Tensor;
using executorch::aten::RuntimeContext;

namespace cadence {
namespace impl {
namespace HiFi {
namespace native {
Expand Down Expand Up @@ -51,3 +52,4 @@ Tensor& rsqrt_out(RuntimeContext& ctx, const Tensor& in, Tensor& out) {
} // namespace native
} // namespace HiFi
} // namespace impl
} // namespace cadence

0 comments on commit a23b646

Please sign in to comment.