pytorch/test/cpp
Michael Suo 42af2c7923 [jit] gtest-ify test_alias_analysis.cpp (#45018)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45018

Now that https://github.com/pytorch/pytorch/pull/44795 has landed, we
can convert the bulk of our cpp tests to use gtest APIs. Eventually
we'll want to get rid of our weird harness for cpp tests entirely in
favor of using regular gtest everywhere. This PR demonstrates some of
the benefits of this approach:
1. You don't need to register your test twice (once to define it, once
in tests.h).
2. Consequently, it's easier to have many individual test cases.
Failures can be reported independently (rather than having huge
functions to test entire modules.
3. Some nicer testing APIs, notably test fixtures.

Test Plan: Imported from OSS

Reviewed By: ZolotukhinM

Differential Revision: D23802297

Pulled By: suo

fbshipit-source-id: 774255da7716294ac573747dcd5e106e5fe3ac8f
2020-09-21 12:19:37 -07:00
..
api Add one dimensional FFTs to torch.fft namespace (#43011) 2020-09-19 23:32:22 -07:00
common
dist_autograd Release DistAutogradContainer context for each dist_autograd test case (#38711) 2020-06-18 20:58:55 -07:00
jit [jit] gtest-ify test_alias_analysis.cpp (#45018) 2020-09-21 12:19:37 -07:00
rpc Make Channel API accept buffer structs rather than raw pointers. (#45014) 2020-09-21 10:18:45 -07:00
tensorexpr [NNC] fix SyncThreads insertion and reenable CudaSharedMem test (#44909) 2020-09-21 09:27:22 -07:00
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00