mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33217 Test Plan: Imported from OSS Differential Revision: D19848380 Pulled By: ZolotukhinM fbshipit-source-id: d8683f8fc4555d2456cd2a7c827d8e8231915b49
25 lines
536 B
C++
25 lines
536 B
C++
#pragma once
|
|
|
|
/**
|
|
* See README.md for instructions on how to add a new test.
|
|
*/
|
|
#include <c10/macros/Export.h>
|
|
#include <torch/csrc/WindowsTorchApiMacro.h>
|
|
|
|
namespace torch {
|
|
namespace jit {
|
|
#define TH_FORALL_TESTS(_) \
|
|
_(TypeTest01) \
|
|
|
|
#define TH_FORALL_TESTS_CUDA(_) \
|
|
|
|
#define DECLARE_TENSOREXPR_TEST(name) void test##name();
|
|
TH_FORALL_TESTS(DECLARE_TENSOREXPR_TEST)
|
|
#ifdef USE_CUDA
|
|
TH_FORALL_TESTS_CUDA(DECLARE_TENSOREXPR_TEST)
|
|
#endif
|
|
#undef DECLARE_TENSOREXPR_TEST
|
|
|
|
} // namespace jit
|
|
} // namespace torch
|