-
Notifications
You must be signed in to change notification settings - Fork 425
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
Optimized atan2, _softmax, cat, clamp, full, relu, remainder, permute_copy_out ops and updates to use memory_allocator #7567
Changes from 23 commits
216389c
3d849bb
9b71aed
07743ab
edc1b3d
222beee
6e074ec
afca3db
10a0ee0
f1f0bb3
f8cf408
911021f
18cf518
5e471f2
6928f95
991961b
7585ee0
540243a
85e7c59
1f681c7
3539f52
fe5e7d7
4923b83
224aaf4
7f9a78f
6409958
d62648a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,32 +21,35 @@ endif() | |
# ATen compliant ops that are needed to run this model. | ||
set(_aten_ops__srcs | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_add.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_atan2.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_cat.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_clamp.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_div.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_full.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_maximum.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_mean.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_minimum.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_mul.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_permute_copy.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_pow.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_remainder.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_rsqrt.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_softmax.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_sigmoid.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_sub.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_tanh.cpp" | ||
"${EXECUTORCH_ROOT}/backends/cadence/hifi/operators/op_where.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_bmm.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_cat.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_clone.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_embedding.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_full.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_gt.cpp" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. which op requires gt? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not part of any model as such but was part of the ops list provided. This change not necessary for this PR but we will be including all logical ops under optimized version on next PR. We will remove this and add from cadence/hifi/operators There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no particular issues with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. full not removed, but moved to cadence/hifi/operators/ Hope this is good There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah you're right, my bad! The alphabetical order threw me off :) |
||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_gelu.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_hardtanh.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_max_pool2d_with_indices.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_permute_copy.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_slice_copy.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_softmax.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_split_with_sizes_copy.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_to_copy.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_view_copy.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_where.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/pattern/unary_ufunc_realhbbf16_to_floathbf16.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/util/activation_ops_util.cpp" | ||
"${EXECUTORCH_ROOT}/kernels/portable/cpu/util/broadcast_util.cpp" | ||
|
@@ -74,7 +77,7 @@ target_include_directories( | |
# Custom ops that are needed to run the test model. | ||
add_library( | ||
custom_ops "quantized_linear_out.cpp" "quantized_layer_norm.cpp" | ||
"quantize_per_tensor.cpp" "dequantize_per_tensor.cpp" | ||
"quantize_per_tensor.cpp" "quantized_relu_out.cpp" "dequantize_per_tensor.cpp" | ||
) | ||
target_include_directories( | ||
custom_ops PUBLIC ${ROOT_DIR}/.. ${CMAKE_BINARY_DIR} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hsharma35 this is the right format for
using
right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no actually, please use
::executorch:
for::executorch::runtime::KernelRuntimeContext;
and all other namespaces @cad-audioThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is generic comment we will capture in our pending items. We will apply to all ops (inc. already merged) through a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fully qualified is preferred per ET style guide, but this one works too.