Home / Class/ MatAdd Class — pytorch Architecture

MatAdd Class — pytorch Architecture

Architecture documentation for the MatAdd class in Unfold3d.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/Unfold3d.cpp lines 48–55

template <typename T>
void MatAdd(int64_t M, int64_t N, int64_t ldx, int64_t ldy, const T* X, T* Y) {
  for (const auto i : c10::irange(M)) {
    for (const auto j : c10::irange(N)) {
      Y[i * ldy + j] += X[i * ldx + j];
    }
  }
}

Analyze Your Own Codebase

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

Try Supermodel Free