Home / Class/ expectListEquals Class — pytorch Architecture

expectListEquals Class — pytorch Architecture

Architecture documentation for the expectListEquals class in test_helpers.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/core/boxing/impl/test_helpers.h lines 112–118

template <class T>
void expectListEquals(c10::ArrayRef<T> expected, c10::ArrayRef<T> actual) {
  EXPECT_EQ(expected.size(), actual.size());
  for (const auto i : c10::irange(expected.size())) {
    EXPECT_EQ(expected[i], actual[i]);
  }
}

Analyze Your Own Codebase

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

Try Supermodel Free