Skip to content

Commit

Permalink
cpu: aarch64: using capture by ref in lambda func of acl_softmax
Browse files Browse the repository at this point in the history
Signed-off-by: Ye Tao <ye.tao@arm.com>
  • Loading branch information
taoye9 committed Oct 23, 2024
1 parent b87ac73 commit 6945f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpu/aarch64/acl_softmax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ status_t acl_softmax_fwd_t::pd_t::init(engine_t *engine) {
// associated with calling the external library and the negative
// coefficient on total_size as ACL being faster at processing
// each element
auto calculate_performance_diff = [=](double axis_coeff) {
auto calculate_performance_diff = [&](double axis_coeff) {
double acl_ref_performance_diff = 1 + 0.005 * outer_size_
+ axis_coeff * axis_size_
* std::ceil(double(outer_size_) / threads);
Expand Down

0 comments on commit 6945f6a

Please # to comment.