maximum Class — pytorch Architecture
Architecture documentation for the maximum class in vec256_double.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec256/vec256_double.h lines 376–384
template <>
Vectorized<double> inline maximum(
const Vectorized<double>& a,
const Vectorized<double>& b) {
Vectorized<double> max = _mm256_max_pd(a, b);
Vectorized<double> isnan = _mm256_cmp_pd(a, b, _CMP_UNORD_Q);
// Exploit the fact that all-ones is a NaN.
return _mm256_or_pd(max, isnan);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free