make_kernel_descriptor Class — pytorch Architecture
Architecture documentation for the make_kernel_descriptor class in jit_utils.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/cuda/jit_utils.h lines 34–52
template <
typename result_type,
typename f_inputs_type,
typename... ExtraArgs>
KernelDescriptor make_kernel_descriptor(
std::string name,
std::string f,
int nInputs,
int nOutputs) {
KernelDescriptor ret;
ret.name = std::move(name);
ret.f = std::move(f);
ret.f_inputs_type = c10::CppTypeToScalarType<f_inputs_type>::value;
ret.result_type = c10::CppTypeToScalarType<result_type>::value;
ret.extra_args_types = get_extra_args_types<ExtraArgs...>();
ret.nInputs = nInputs;
ret.nOutputs = nOutputs;
return ret;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free