pytorch/test/cpp/api/test.h
Peter Goldsborough af71fb882f
Merge autogradpp into PyTorch (#7074)
* Dump autogradpp into PyTorch

* Fixed up CMake for autogradpp/C++ API

* Made cereal a submodule

* Change search location of autogradpps mnist directory

* Add test_api to CI

* Download MNIST from the internet instead of storing in repo

* Fix warnings
2018-04-30 12:53:46 -07:00

15 lines
289 B
C++

#pragma once
#include "lest.hpp"
#include <torch/autograd.h>
using namespace autograd;
#define CASE( name ) lest_CASE( specification(), name )
#define CUDA_GUARD if (!hasCuda()) {\
std::cerr << "No cuda, skipping test" << std::endl; return;\
}
extern lest::tests & specification();