inner_type Class — pytorch Architecture
Architecture documentation for the inner_type class in jit_type.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/core/jit_type.h lines 2056–2065
template<>
struct getTypePtr_<at::OptionalIntArrayRef> final {
static const auto& call() {
static auto inner_type = getMaybeFakeTypePtr_<IntArrayRef, false>::call();
// The "per std::optional<T>" static singleton needs to live in a .cpp file,
// otherwise we'll end up with one singleton instance per shared library.
static auto type = OptionalType::get(inner_type);
return type;
}
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free