Skip to content

Commit 4740f9e

Browse files
committed
Update
[ghstack-poisoned]
1 parent 3540723 commit 4740f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernels/optimized/cpu/op_gelu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void gelu(
6969
}
7070
#else
7171
size_t i = 0;
72-
if (std::is_same<CTYPE, float>::value) {
72+
if constexpr (std::is_same_v<CTYPE, float>) {
7373
for (; i + 4 < lim; i += 4) {
7474
const float32x4_t in =
7575
vld1q_f32(static_cast<const float*>(&in_data[i]));

0 commit comments

Comments
 (0)