first_type Class — pytorch Architecture
Architecture documentation for the first_type class in mixed_data_type.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/cpu/mixed_data_type.h lines 11–14
template <typename... Args>
inline ScalarType first_type(const Tensor& arg, const Args&... parameters) {
return arg.defined() ? arg.scalar_type() : first_type(parameters...);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free