8 #ifndef TREELITE_ENUM_TYPEINFO_H_
9 #define TREELITE_ENUM_TYPEINFO_H_
15 #include <type_traits>
36 if (std::is_same_v<T, std::uint32_t>) {
38 }
else if (std::is_same_v<T, float>) {
40 }
else if (std::is_same_v<T, double>) {
logging facility for Treelite
Definition: contiguous_array.h:14
TypeInfo TypeInfoFromType()
Convert a template type into a type info.
Definition: typeinfo.h:35
TypeInfo
Types used by thresholds and leaf outputs.
Definition: typeinfo.h:21
std::string TypeInfoToString(treelite::TypeInfo info)
Get string representation of TypeInfo.
TypeInfo TypeInfoFromString(std::string const &str)
Get TypeInfo from string.