assert_eq Class — pytorch Architecture
Architecture documentation for the assert_eq class in pow_test.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/test/pow_test.cpp lines 83–90
template <class T,
typename std::enable_if_t<std::is_floating_point_v<T>, T>* = nullptr>
void assert_eq(T val, T act, T exp) {
if (std::isnan(act) || std::isnan(exp)) {
return;
}
ASSERT_FLOAT_EQ(act, exp);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free