getCustomClassType Class — pytorch Architecture
Architecture documentation for the getCustomClassType class in custom_class.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/core/custom_class.h lines 17–26
template <typename T>
const c10::ClassTypePtr& getCustomClassType() {
// Classes are never unregistered from getCustomClassTypeMap and the
// hash lookup can be a hot path, so just cache.
// For the same reason, it's fine If this ends up getting duplicated across
// DSO boundaries for whatever reason.
static c10::ClassTypePtr cache = getCustomClassTypeImpl(
std::type_index(typeid(T)));
return cache;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free