castRaw Class — pytorch Architecture
Architecture documentation for the castRaw class in jit_type.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/core/jit_type.h lines 2393–2400
template<>
inline const NamedType* Type::castRaw<NamedType>() const {
if (kind() == TypeKind::TupleType || kind() == TypeKind::FunctionType ||
kind() == TypeKind::ClassType || kind() == TypeKind::InterfaceType) {
return static_cast<const NamedType*>(this);
}
return nullptr;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free