Skip to content

Commit b20c519

Browse files
committed
Update on "[Executorch] optimized sigmoid"
basically use exp approximation using sleef instead of std::exp Differential Revision: [D64156864](https://our.internmc.facebook.com/intern/diff/D64156864/) [ghstack-poisoned]
2 parents 762f0aa + eceb120 commit b20c519

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernels/optimized/vec/functional_base.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ inline void broadcasting_map_broadcast_last_dim(
400400
int64_t broadcast_size) {
401401
using Vec = vec::Vectorized<scalar_t>;
402402
int64_t outer_stride_lhs = broadcast_size;
403-
int64_t outer_stride_rhs = 1;
404403
for (int64_t outer_idx = 0; outer_idx < outer_size; ++outer_idx) {
405404
const scalar_t* lhs_outer = lhs + outer_idx * outer_stride_lhs;
406405
scalar_t* output_data_row = output_data + outer_idx * outer_stride_lhs;

0 commit comments

Comments
 (0)