pytorch/test/cpp
Jiewen Tan 4b68801c69 Enable test_api IMethodTest in OSS (#62521)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62521

This diff did the following few things to enable the tests:
1. Exposed IMethod as TORCH_API.
2. Linked torch_deploy to test_api if USE_DEPLOY == 1.

Test Plan:
./build/bin/test_api --gtest_filter=IMethodTest.*

To be noted, one needs to run `python torch/csrc/deploy/example/generate_examples.py` before the above command.

Reviewed By: ezyang

Differential Revision: D30055372

Pulled By: alanwaketan

fbshipit-source-id: 50eb3689cf84ed0f48be58cd109afcf61ecca508
2021-08-04 21:14:20 -07:00
..
api Enable test_api IMethodTest in OSS (#62521) 2021-08-04 21:14:20 -07:00
c10d Exclude time of waiting in queue from gloo communication prof… (#61342) 2021-07-28 22:24:26 -07:00
common
dist_autograd Fix distributed autograd gradients synchronization (#57792) 2021-05-09 17:32:59 -07:00
jit [Pytorch Edge] Black Box Compatibility API (#61477) 2021-08-03 11:27:28 -07:00
lite_interpreter_runtime [Pytorch Delegated Backend] Save function name in debug info (#57481) 2021-05-25 13:19:02 -07:00
rpc Move torch/lib/c10d to torch/csrc/distributed/c10d (#60543) 2021-06-24 12:38:51 -07:00
tensorexpr [nnc] Removed const from all fields in IR. (#62336) 2021-08-03 11:44:36 -07:00
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00