/usr/include/TH/THTensor.h is in libtorch-th-dev 0~20170926-g89ede3b-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | #ifndef TH_TENSOR_INC
#define TH_TENSOR_INC
#include "THStorage.h"
#include "THTensorApply.h"
#define THTensor TH_CONCAT_3(TH,Real,Tensor)
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
/* basics */
#include "generic/THTensor.h"
#include "THGenerateAllTypes.h"
#include "generic/THTensor.h"
#include "THGenerateHalfType.h"
#include "generic/THTensorCopy.h"
#include "THGenerateAllTypes.h"
#include "generic/THTensorCopy.h"
#include "THGenerateHalfType.h"
#include "THTensorMacros.h"
/* random numbers */
#include "THRandom.h"
#include "generic/THTensorRandom.h"
#include "THGenerateAllTypes.h"
/* maths */
#include "generic/THTensorMath.h"
#include "THGenerateAllTypes.h"
/* convolutions */
#include "generic/THTensorConv.h"
#include "THGenerateAllTypes.h"
/* lapack support */
#include "generic/THTensorLapack.h"
#include "THGenerateFloatTypes.h"
#endif
|