minmax_out_impl Class — pytorch Architecture
Architecture documentation for the minmax_out_impl class in TensorCompare.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/TensorCompare.cpp lines 744–761
template <class Stub>
static void minmax_out_impl(
const Tensor& self,
int64_t dim,
bool keepdim,
const Tensor& values,
const Tensor& indices,
Stub& stub) {
NoNamesGuard guard;
if (self.numel() > 0) {
if (self.numel() == 1 && self.dim() == 0) {
values.fill_(self);
indices.fill_(0);
} else {
stub(self.device().type(), values, indices, self, dim, keepdim);
}
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free