mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
This PR clears warnings and enables clang-tidy on c10/util/Float8*.h. Pull Request resolved: https://github.com/pytorch/pytorch/pull/120573 Approved by: https://github.com/drisspg
11 lines
220 B
C++
11 lines
220 B
C++
#include <c10/macros/Macros.h>
|
|
#include <c10/util/Float8_e5m2fnuz.h>
|
|
|
|
namespace c10 {
|
|
|
|
static_assert(
|
|
std::is_standard_layout_v<Float8_e5m2fnuz>,
|
|
"c10::Float8_e5m2 must be standard layout.");
|
|
|
|
} // namespace c10
|