Home / Class/ launch Class — pytorch Architecture

launch Class — pytorch Architecture

Architecture documentation for the launch class in ValidateCompressedIndicesCommon.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/sparse/ValidateCompressedIndicesCommon.h lines 167–185

template <
    template <typename func_t>
    class kernel_t,
    template <typename func_t, typename vec_func_t>
    class vec_kernel_t>
struct KernelLauncher {
  template <typename func_t, typename vec_func_t>
  static void launch(
      TensorIteratorBase& iter,
      const func_t& f,
      const vec_func_t& vec_f) {
    vec_kernel_t<func_t, vec_func_t>::launch(iter, f, vec_f);
  }

  template <typename func_t>
  static void launch(TensorIteratorBase& iter, const func_t& f) {
    kernel_t<func_t>::launch(iter, f);
  }
};

Analyze Your Own Codebase

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

Try Supermodel Free