Home / Class/ copy Class — pytorch Architecture

copy Class — pytorch Architecture

Architecture documentation for the copy class in CPUBlas.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/CPUBlas.h lines 185–195

template<typename scalar_t>
void copy(int64_t n, const scalar_t *x, int64_t incx, scalar_t *y, int64_t incy) {
  if(n == 1)
  {
    incx = 1;
    incy = 1;
  }
  copy_stub(
      kCPU, c10::CppTypeToScalarType<scalar_t>::value,
      n, x, incx, y, incy);
}

Analyze Your Own Codebase

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

Try Supermodel Free