Lluvia
FloatPrecision.h
Go to the documentation of this file.
1 
8 #ifndef LLUVIA_CORE_FLOAT_PRECISION_H_
9 #define LLUVIA_CORE_FLOAT_PRECISION_H_
10 
12 
13 namespace ll {
14 
18 enum class FloatPrecision : ll::enum_t {
19  FP16 = 0,
20  FP32 = 1,
21  FP64 = 2,
22 };
23 
24 namespace impl {
25 
26  constexpr const std::array<std::tuple<const char*, ll::FloatPrecision>, 3> FloatPrecisionStrings {{
27  std::make_tuple("FP16", ll::FloatPrecision::FP16),
28  std::make_tuple("FP32", ll::FloatPrecision::FP32),
29  std::make_tuple("FP64", ll::FloatPrecision::FP64),
30  }};
31 
32 } // namespace impl
33 
34 } // namespace ll
35 
36 #endif // LLUVIA_CORE_FLOAT_PRECISION_H_
Enums.
constexpr const std::array< std::tuple< const char *, ll::FloatPrecision >, 3 > FloatPrecisionStrings
Definition: FloatPrecision.h:26
Definition: Buffer.h:28
FloatPrecision
Floating point precision.
Definition: FloatPrecision.h:18
uint32_t enum_t
Definition: enums.h:23