FuncType Class — pytorch Architecture
Architecture documentation for the FuncType class in boxing.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/core/boxing/impl/boxing.h lines 213–227
template <class FuncType, class Enable = void>
struct BoxedKernelWrapper {
// The reason we're not just doing straight up static_assert(false, ...) here:
// Basically, the way to make sure a static_assert only fires if a template
// is actually instantiated (rather than every time the file is parsed) is to
// use template parameters in the expression, e.g. FuncType here. However,
// since `sizeof(FuncType) != sizeof(FuncType)` is always false, this has the
// same effect.
static_assert(
sizeof(FuncType) != sizeof(FuncType),
"Function signature contains one or more unsupported parameter and/or return types. "
"Look for a nearby error like "
"\"'call' is not a member of 'c10::impl::BoxedKernelWrapper<(your function type), void>'\" "
"- (your function type) is the unsupported signature.");
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free