mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-08 07:39:33 +01:00
Fixes #77908 Pull Request resolved: https://github.com/pytorch/pytorch/pull/78032 Approved by: https://github.com/ezyang
23 lines
484 B
C
23 lines
484 B
C
#ifndef THP_STORAGE_INC
|
|
#define THP_STORAGE_INC
|
|
|
|
#include <torch/csrc/Types.h>
|
|
|
|
#define THPStorageStr "torch._UntypedStorage"
|
|
#define THPStorageBaseStr "StorageBase"
|
|
|
|
struct THPStorage {
|
|
PyObject_HEAD
|
|
c10::StorageImpl *cdata;
|
|
};
|
|
|
|
TORCH_PYTHON_API PyObject * THPStorage_New(c10::intrusive_ptr<c10::StorageImpl> ptr);
|
|
extern PyObject *THPStorageClass;
|
|
|
|
bool THPStorage_init(PyObject *module);
|
|
void THPStorage_postInit(PyObject *module);
|
|
|
|
extern PyTypeObject THPStorageType;
|
|
|
|
#endif
|