Home / Class/ swap Class — pytorch Architecture

swap Class — pytorch Architecture

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

Entity Profile

Source Code

aten/src/ATen/core/List_inl.h lines 148–151

template<class T, class Iterator>
void swap(ListElementReference<T, Iterator>&& lhs, ListElementReference<T, Iterator>&& rhs)  noexcept {
  std::swap(*lhs.iterator_, *rhs.iterator_);
}

Analyze Your Own Codebase

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

Try Supermodel Free