get_generator_or_default Class — pytorch Architecture
Architecture documentation for the get_generator_or_default class in Generator.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/core/Generator.h lines 164–167
template <typename T>
inline T* get_generator_or_default(const std::optional<Generator>& gen, const Generator& default_gen) {
return gen.has_value() && gen->defined() ? check_generator<T>(gen) : check_generator<T>(default_gen);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free