deprecated Class — pytorch Architecture
Architecture documentation for the deprecated class in cpp_custom_type_hack.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpp_custom_type_hack.h lines 62–70
template <typename T>
[[deprecated(
"Use custom classes instead: "
"https://pytorch.org/tutorials/advanced/torch_script_custom_classes.html")]] bool
isa(const Tensor& packed) {
return (packed.scalar_type() == kByte) &&
(packed.storage().data_ptr().get_deleter() ==
caffe2::TypeMeta::Make<T>().deleteFn());
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free