from Class — pytorch Architecture
Architecture documentation for the from class in vec_mask.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec_mask.h lines 148–153
template <typename U>
static VecMask<T, N> from(U b) {
using int_t = int_same_size_t<T>;
T mask = b ? c10::bit_cast<T>((int_t)(~(int_t)0)) : (T)0;
return VectorizedN<T, N>(mask);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free