16 #include <type_traits> 37 typedef std::integral_constant<Type, IS_FLOATING_POINT>
IsFPType;
38 typedef std::integral_constant<Type, IS_FP16>
IsFP16Type;
39 typedef std::integral_constant<Type, IS_BINARY_SCIENTIFIC>
IsBSType;
41 template <
typename T>
struct WhichType : IsInvalidType{};
std::integral_constant< Type, IS_FP16 > IsFP16Type
std::integral_constant< Type, IS_FLOATING_POINT > IsFPType
std::integral_constant< Type, IS_BINARY_SCIENTIFIC > IsBSType
std::integral_constant< Type, IS_INVALID > IsInvalidType