Rename autograd namespace to torch and change torch.h into python.h (#7267)

* Rename autograd namespace to torch and change torch.h into python.h

* Include torch.h instead of python.h in test/cpp/api

* Change some mentions of torch.h to python.h in C++ extensions

* Set paths directly, without find_path
This commit is contained in:
Peter Goldsborough
2018-05-04 08:04:57 -07:00
committed by GitHub
parent bcffb5aa1d
commit 67d0d14908
27 changed files with 70 additions and 68 deletions

View File

@@ -1,8 +1,8 @@
#include <catch.hpp>
#include <torch/autograd.h>
#include <torch/torch.h>
using namespace autograd;
using namespace torch;
TEST_CASE("misc") {
SECTION("no_grad") {