mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Improves autograd performance by more than 2x and fixes a couple of bugs. All core functions have been moved to C.
15 lines
306 B
C
15 lines
306 B
C
#ifndef THP_MODULE_INC
|
|
#define THP_MODULE_INC
|
|
|
|
#define THP_STATELESS_ATTRIBUTE_NAME "_torch"
|
|
|
|
extern PyObject *THPDefaultTensorClass;
|
|
extern THPGenerator *THPDefaultGenerator;
|
|
|
|
#ifdef _THP_CORE
|
|
bool THPModule_tensorCopy(PyObject *dst, PyObject *src);
|
|
bool THPModule_isTensor(PyObject *obj);
|
|
#endif
|
|
|
|
#endif
|