Fixed switch statement, thanks @yocabon

This commit is contained in:
Eric Engelhart 2022-10-04 21:25:46 -04:00
parent 9b1b011bf6
commit 2211db5fab

View File

@ -18,10 +18,10 @@
#define FP16_SWITCH(COND, ...) \
[&] { \
if (COND) { \
using elem_type = std::conditional<true, __nv_bfloat16, __half>::type; \
using elem_type = __nv_bfloat16; \
return __VA_ARGS__(); \
} else { \
using elem_type = std::conditional<true, __nv_bfloat16, __half>::type; \
using elem_type = __half; \
return __VA_ARGS__(); \
} \
}()