real_neg Class — pytorch Architecture
Architecture documentation for the real_neg class in vec256_zarch.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec256/zarch/vec256_zarch.h lines 2454–2466
template <
typename U = T,
std::enable_if_t<std::is_same<U, c10::complex<float>>::value, int> = 0>
static typename Vectorized<T>::vinner_type real_neg(
const typename Vectorized<T>::vinner_type& a) {
const auto swap_mask = ZSimdVectBinary<uint8_t>{
0, 1, 2, 3, 20, 21, 22, 23, 8, 9, 10, 11, 28, 29, 30, 31};
auto a_neg = a.neg();
vtype v0 = vec_perm(a_neg.vec0(), a.vec0(), swap_mask);
vtype v1 = vec_perm(a_neg.vec1(), a.vec1(), swap_mask);
return {v0, v1};
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free