Skip to content

Commit

Permalink
Fixing review comments on PR 6867
Browse files Browse the repository at this point in the history
  • Loading branch information
dijopaul committed Nov 22, 2024
1 parent 10a0ee0 commit f1f0bb3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
12 changes: 6 additions & 6 deletions backends/cadence/aot/functions_hifi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
- op: maximum.out
kernels:
- arg_meta: null
kernel_name: impl::HiFi::maximum_out
kernel_name: cadence::impl::HiFi::maximum_out

- op: mean.out
kernels:
Expand All @@ -90,7 +90,7 @@
- op: minimum.out
kernels:
- arg_meta: null
kernel_name: cadence::impl::HiFi::mean_dim_out
kernel_name: cadence::impl::HiFi::minimum_out

- op: mul.out
kernels:
Expand All @@ -105,22 +105,22 @@
- op: pow.Scalar_out
kernels:
- arg_meta: null
kernel_name: impl::HiFi::pow_Scalar_out
kernel_name: cadence::impl::HiFi::pow_Scalar_out

- op: pow.Tensor_Scalar_out
kernels:
- arg_meta: null
kernel_name: impl::HiFi::pow_Tensor_Scalar_out
kernel_name: cadence::impl::HiFi::pow_Tensor_Scalar_out

- op: pow.Tensor_Tensor_out
kernels:
- arg_meta: null
kernel_name: impl::HiFi::pow_Tensor_Tensor_out
kernel_name: cadence::impl::HiFi::pow_Tensor_Tensor_out

- 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
3 changes: 3 additions & 0 deletions backends/cadence/hifi/operators/op_maximum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ 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 @@ -170,3 +172,4 @@ Tensor& maximum_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
3 changes: 3 additions & 0 deletions backends/cadence/hifi/operators/op_pow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ using executorch::runtime::promoteTypes;
using torch::executor::Error;
using torch::executor::resize_to_broadcast_target_size;

namespace cadence {
namespace impl {
namespace HiFi {
namespace native {
Expand Down Expand Up @@ -349,3 +350,5 @@ Tensor& pow_Scalar_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 f1f0bb3

Please sign in to comment.