convert_to_int_of_same_size Class — pytorch Architecture
Architecture documentation for the convert_to_int_of_same_size class in vec256.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec256/vec256.h lines 158–165
template <>
Vectorized<int64_t> inline convert_to_int_of_same_size<double>(
const Vectorized<double>& src) {
auto x = _mm256_add_pd(src, _mm256_set1_pd(0x0018000000000000));
return _mm256_sub_epi64(
_mm256_castpd_si256(x),
_mm256_castpd_si256(_mm256_set1_pd(0x0018000000000000)));
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free