1 | #include <c10/util/Half.h> |
---|---|
2 | #include <iostream> |
3 | |
4 | namespace c10 { |
5 | |
6 | static_assert( |
7 | std::is_standard_layout<Half>::value, |
8 | "c10::Half must be standard layout."); |
9 | |
10 | std::ostream& operator<<(std::ostream& out, const Half& value) { |
11 | out << (float)value; |
12 | return out; |
13 | } |
14 | } // namespace c10 |
15 |