Home / Class/ for_each_selected_stat_type Class — pytorch Architecture

for_each_selected_stat_type Class — pytorch Architecture

Architecture documentation for the for_each_selected_stat_type class in Allocator.h from the pytorch codebase.

Entity Profile

Source Code

c10/core/Allocator.h lines 392–399

template <typename Func>
void for_each_selected_stat_type(const StatTypes& stat_types, Func f) {
  for (const auto stat_type : c10::irange(stat_types.size())) {
    if (stat_types[stat_type]) {
      f(stat_type);
    }
  }
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free