Home / Class/ ref Class — pytorch Architecture

ref Class — pytorch Architecture

Architecture documentation for the ref class in aotriton_adapter.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/transformers/hip/aotriton_adapter.h lines 45–50

template<typename TargetType>
struct IntArrayRefCaster<TargetType, 1> {
  static auto cast(at::IntArrayRef ref) {
    return std::array<TargetType, 1>{{ static_cast<TargetType>(ref.at(0)) }};
  }
};

Analyze Your Own Codebase

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

Try Supermodel Free