mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
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.
20 lines
402 B
C++
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"
|