sgn Class — pytorch Architecture
Architecture documentation for the sgn class in vec_base.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec_base.h lines 410–415
template <
typename other_t_sgn = T,
typename std::enable_if_t<c10::is_complex<other_t_sgn>::value, int> = 0>
Vectorized<T> sgn() const {
return map(at::native::sgn_impl);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free