binary_compare Class — pytorch Architecture
Architecture documentation for the binary_compare class in vec512_bfloat16.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec512/vec512_bfloat16.h lines 751–760
template <typename Op, typename VectorizedType>
Vectorized<T> inline binary_compare(const VectorizedType& b, Op op) const {
__m512 a_lo, a_hi;
__m512 b_lo, b_hi;
cvt_to_fp32<T>(values, a_lo, a_hi);
cvt_to_fp32<T>(b.values, b_lo, b_hi);
auto o1 = op(a_lo, b_lo);
auto o2 = op(a_hi, b_hi);
return cvt_from_fp32<T, /*is_compare_op*/ true>(o1, o2);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free