We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if constexpr
1 parent 2307b6f commit 520e0bcCopy full SHA for 520e0bc
kernels/optimized/cpu/op_gelu.cpp
@@ -69,7 +69,7 @@ void gelu(
69
}
70
#else
71
size_t i = 0;
72
- if (std::is_same<CTYPE, float>::value) {
+ if constexpr (std::is_same_v<CTYPE, float>) {
73
for (; i + 4 < lim; i += 4) {
74
const float32x4_t in =
75
vld1q_f32(static_cast<const float*>(&in_data[i]));
0 commit comments