Home / Class/ swap Class — pytorch Architecture

swap Class — pytorch Architecture

Architecture documentation for the swap class in CompositeRandomAccessor.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/cuda/CompositeRandomAccessor.h lines 23–29

template <typename Values, typename References>
void swap(
  references_holder<Values, References> rh1,
  references_holder<Values, References> rh2
) {
  return thrust::swap(rh1.data(), rh2.data());
}

Analyze Your Own Codebase

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

Try Supermodel Free