test_squared Class — pytorch Architecture
Architecture documentation for the test_squared class in pow_test.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/test/pow_test.cpp lines 245–250
template<typename T>
void test_squared(const std::vector<T> vals) {
for (const auto val : vals) {
ASSERT_EQ(native::powi(val, T(2)), val * val);
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free