mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08: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,10 +1,10 @@
|
||||
#include <catch.hpp>
|
||||
|
||||
#include <torch/autograd.h>
|
||||
#include <torch/torch.h>
|
||||
|
||||
#include "cereal/archives/portable_binary.hpp"
|
||||
|
||||
using namespace autograd;
|
||||
using namespace torch;
|
||||
|
||||
TEST_CASE("serialization") {
|
||||
SECTION("undefined") {
|
||||
|
||||
Reference in New Issue
Block a user