mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Follow up to #107586. Pull Request resolved: https://github.com/pytorch/pytorch/pull/115214 Approved by: https://github.com/peterbell10, https://github.com/malfet
16 lines
329 B
C++
16 lines
329 B
C++
#include <c10/util/Float8_e4m3fnuz.h>
|
|
#include <iostream>
|
|
|
|
namespace c10 {
|
|
|
|
static_assert(
|
|
std::is_standard_layout_v<Float8_e4m3fnuz>,
|
|
"c10::Float8_e4m3fnuz must be standard layout.");
|
|
|
|
std::ostream& operator<<(std::ostream& out, const Float8_e4m3fnuz& value) {
|
|
out << (float)value;
|
|
return out;
|
|
}
|
|
|
|
} // namespace c10
|