src Class — pytorch Architecture
Architecture documentation for the src class in vec_base.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec_base.h lines 1341–1348
template <typename dst_t, typename src_t>
struct CastImpl {
static inline Vectorized<dst_t> apply(const Vectorized<src_t>& src) {
src_t src_arr[Vectorized<src_t>::size()];
src.store(static_cast<void*>(src_arr));
return Vectorized<dst_t>::loadu(static_cast<const void*>(src_arr));
}
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free