extract Class — pytorch Architecture
Architecture documentation for the extract class in List_inl.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/core/List_inl.h lines 204–211
template<class T>
typename List<T>::value_type List<T>::extract(size_type pos) const {
auto& elem = impl_->list.at(pos);
auto result = c10::detail::list_element_to<T>(std::move(elem));
// Reset the list element to a T() instead of None to keep it correctly typed
elem = c10::detail::ListElementFrom<T>::from(T{});
return result;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free