isFunctionalTensorIListRef Class — pytorch Architecture
Architecture documentation for the isFunctionalTensorIListRef class in FunctionalTensorWrapper.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/FunctionalTensorWrapper.cpp lines 733–744
template <typename T>
static bool isFunctionalTensorIListRef(c10::IListRef<T> list) {
if (list.size() == 0) { return false; }
auto functional_count = 0;
for (const auto& tensor : list) {
if (!tensor.defined()) { continue; }
if (isFunctionalTensor(tensor)) {
++functional_count;
}
}
return functional_count > 0;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free