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.
1 parent 3540723 commit 4740f9eCopy full SHA for 4740f9e
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