AllowDeprecatedTypes Class — pytorch Architecture
Architecture documentation for the AllowDeprecatedTypes class in make_boxed_from_unboxed_functor.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h lines 116–127
template <class T, bool AllowDeprecatedTypes, class Enable = void>
struct assert_is_valid_input_type {
assert_is_valid_input_type() {
if constexpr (guts::typelist::contains<supported_primitive_arg_types, T>::
value) {
/* everything is ok, this is a primitive type */
} else {
/* otherwise this must be an instance of a valid custom class, since it
can only have been created via IValue(x), which ensures this. */
}
}
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free