pytorch/torch/csrc/cuda/Tensor.cpp
Sam Gross bd5303010d Refactor autograd package to separate Python dependencies. (#662)
The core autograd Variable, Function, and Engine no longer depend on the
Python API. This let's us implement functions in C++. In the future, we
can also multithread engine and release the GIL for most of the
non-Python backwards.
2017-02-13 16:00:16 -08:00

20 lines
402 B
C++

#include <Python.h>
#include <structmember.h>
#include <TH/THMath.h>
#include <stdbool.h>
#include <vector>
#include <stack>
#include <tuple>
#include "THCP.h"
#include "override_macros.h"
#include "torch/csrc/copy_utils.h"
#include "DynamicTypes.h"
#define THC_GENERIC_FILE "torch/csrc/generic/Tensor.cpp"
#include <THC/THCGenerateAllTypes.h>
#include "undef_macros.h"
#include "restore_macros.h"