is_nan Class — pytorch Architecture
Architecture documentation for the is_nan class in MaxPoolKernel.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/cpu/MaxPoolKernel.cpp lines 20–26
template <typename scalar_t>
bool is_nan(scalar_t v) {
if (std::is_integral_v<scalar_t> || std::is_same_v<scalar_t, unsigned char>) {
return false;
}
return std::isnan(v);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free