Home / Class/ SetUp Class — pytorch Architecture

SetUp Class — pytorch Architecture

Architecture documentation for the SetUp class in MaybeOwned_test.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/test/MaybeOwned_test.cpp lines 184–192

template <typename T>
void MaybeOwnedTest<T>::SetUp() {
  borrowFrom = getSampleValue<T>();
  ownCopy = getSampleValue<T>();
  ownCopy2 = getSampleValue<T>();
  borrowed = c10::MaybeOwned<T>::borrowed(borrowFrom);
  owned = c10::MaybeOwned<T>::owned(std::in_place, ownCopy);
  owned2 = c10::MaybeOwned<T>::owned(T(ownCopy2));
}

Analyze Your Own Codebase

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

Try Supermodel Free