Updating cadence ops with new name space, rebasing 6 optimized ops#6407
Updating cadence ops with new name space, rebasing 6 optimized ops#6407mcremon-meta merged 17 commits intopytorch:mainfrom
Conversation
dijopaul
commented
Oct 21, 2024
- Adding 'cadence' name space in all ops
- Rebasing all ops add,sub,div,mul,sigmoid,tanh as there are major merge conflicts
- The ops are already reviewed under Added HiFi optimizations for add sub mul and div operators #5483
* Add nnlib as submodule * Adding nnlib submodule * Integrated nnlib API unde backends/cadence/hifi * Fix review comments on PR#3 * Add nnlib as submodule * Adding nnlib submodule * Integrated nnlib API unde backends/cadence/hifi * Fix review comments on PR#3 * Incorporated feedback from Meta team. * lint errors fixed * Adding Sub operator optimized version * Add optimization for add, mul operators * Adding Div operator * Modified div mod to cover truncate and floor modes --------- Co-authored-by: cad-audio <86048415+cad-audio@users.noreply.github.com> Co-authored-by: cad-audio <cad_audio_tflm@cadence.com>
Adding add sub mul and div optimizations
Adding sigmoid and tanh optimizations
Fixing review comments in 5483
Namespace update as per review comments
Adding cflags to prevent compilation halts
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6407
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit a1340f7 with merge base 324f021 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| kernels: | ||
| - arg_meta: null | ||
| kernel_name: torch::executor::add_out | ||
| kernel_name: impl::HiFi::add_out |
There was a problem hiding this comment.
probably should be cadence::impl::HiFi too, but we can do that in a follow up if this can be merged
There was a problem hiding this comment.
I will create a new PR for this
|
Hi @dijopaul sorry I reverted this because it seems to break our internal CI. Maybe we need to import to internal repo first and run CI there |
|
xplat/executorch/backends/cadence/hifi/operators/op_tanh.cpp:10:10: fatal error: 'executorch/kernels/portable/cpu/pattern/pattern.h' file not found |
|
@mcremon-meta need to update BUCK |
|
@kirklandsign #6477 the fix is landing internally. thanks for the heads up. cc. @mcremon-meta |