mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Summary: Move TH<C>GenerateByteType includes into torch/csrc (the only place they are used), and we can remove TH folder altogether! The only thing left in THC are includes left for bc compatibility. Pull Request resolved: https://github.com/pytorch/pytorch/pull/69929 Reviewed By: mruberry Differential Revision: D33133013 Pulled By: ngimel fbshipit-source-id: 78c87cf93d2d641631b0f71051ace318bf4ec3c1
21 lines
623 B
C
21 lines
623 B
C
#ifndef THP_STORAGE_INC
|
|
#define THP_STORAGE_INC
|
|
#include <torch/csrc/THConcat.h>
|
|
|
|
#define THPStorageStr TH_CONCAT_STRING_3(torch.,Real,Storage)
|
|
#define THPStorageClass TH_CONCAT_3(THP,Real,StorageClass)
|
|
#define THPStorage_(NAME) TH_CONCAT_4(THP,Real,Storage_,NAME)
|
|
|
|
#define THPByteStorage_Check(obj) \
|
|
PyObject_IsInstance(obj, THPByteStorageClass)
|
|
|
|
#define THPByteStorage_CData(obj) (obj)->cdata
|
|
|
|
#define THPStorageType TH_CONCAT_3(THP,Real,StorageType)
|
|
#define THPStorageBaseStr TH_CONCAT_STRING_2(Real,StorageBase)
|
|
|
|
#include <torch/csrc/generic/Storage.h>
|
|
#include <torch/csrc/THGenerateByteType.h>
|
|
|
|
#endif
|