Skip to content

Conversation

@goldsborough
Copy link
Contributor

This PR is a large codemod to rewrite all C++ API tests with GoogleTest (gtest) instead of Catch.

You can largely trust me to have correctly code-modded the tests, so it's not required to review every of the 2000+ changed lines. However, additional things I changed were:

  1. Moved the cmake parts for these tests into their own CMakeLists.txt under test/cpp/api and calling add_subdirectory from torch/CMakeLists.txt
  2. Fixing DataParallel tests which weren't being compiled because USE_CUDA wasn't correctly being set at all.
  3. Updated README

@ezyang @ebetica

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goldsborough has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

for (const auto& device : devices) {
replicas.push_back(
std::static_pointer_cast<ModuleType>(module->clone(device)));
std::dynamic_pointer_cast<ModuleType>(module->clone(device)));

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants