Home / Class/ is_integral_v Class — pytorch Architecture

is_integral_v Class — pytorch Architecture

Architecture documentation for the is_integral_v class in MetalShaderLibrary.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/mps/MetalShaderLibrary.h lines 68–76

  template <
      typename T,
      typename = std::enable_if_t<
          std::is_integral_v<T> || std::is_same_v<T, float> ||
          (std::is_class_v<T> && std::is_trivially_copyable_v<T> &&
           !detail::has_size_type_v<T>)>>
  inline void setArg(unsigned idx, const T val) {
    setArg(idx, &val, sizeof(T));
  }

Analyze Your Own Codebase

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

Try Supermodel Free