mask_ Class — pytorch Architecture
Architecture documentation for the mask_ class in vec_base.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec_base.h lines 213–226
template <int64_t mask_>
static Vectorized<T> blend(const Vectorized<T>& a, const Vectorized<T>& b) {
int64_t mask = mask_;
Vectorized vector;
for (const auto i : c10::irange(size())) {
if (mask & 0x01) {
vector[i] = b[i];
} else {
vector[i] = a[i];
}
mask = mask >> 1;
}
return vector;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free