mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
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:
committed by
GitHub
parent
bcffb5aa1d
commit
67d0d14908
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user