func_cmp Class — pytorch Architecture
Architecture documentation for the func_cmp class in vec_test_all_types.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/test/vec_test_all_types.h lines 1217–1223
template <typename T, typename Op>
T func_cmp(Op call, T v0, T v1) {
using bit_rep = BitType<T>;
constexpr bit_rep mask = std::numeric_limits<bit_rep>::max();
bit_rep ret = call(v0, v1) ? mask : 0;
return c10::bit_cast<T>(ret);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free