loadu Class — pytorch Architecture
Architecture documentation for the loadu class in vec256_zarch.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec256/zarch/vec256_zarch.h lines 398–410
template <typename U, typename DUMMY = void>
struct LoaduHelper {
static Vectorized<T> C10_ALWAYS_INLINE
loadu(const U* ptr, int count = size()) {
__at_align__ ElementType tmp_values[size()] = {};
std::memcpy(
tmp_values, ptr, std::min(count, size()) * sizeof(ElementType));
return {
vec_xl(offset0, &(tmp_values[0])),
vec_xl(offset16, &(tmp_values[0]))};
}
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free