-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTHTemplateGenerateTypes.hpp
93 lines (81 loc) · 1.84 KB
/
THTemplateGenerateTypes.hpp
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef __TH_TEMPLATE_GENERATE_TYPES_H__
#define __TH_TEMPLATE_GENERATE_TYPES_H__
#include "THTemplateTypes.hpp"
#include "generic/THTemplateType.hpp"
#ifdef THTensor_
#undef THTensor_
#endif
#define THTensor_(NAME) TH_CONCAT_4(TH, RealT, Tensor_, NAME)
#define realT unsigned char
#define accrealT long
#define RealT Byte
#define TH_REAL_IS_BYTE
#line 1 TH_GENERIC_FILE_TEMPLATE
#include TH_GENERIC_FILE_TEMPLATE
#undef realT
#undef accrealT
#undef RealT
#undef TH_REAL_IS_BYTE
#define realT char
#define accrealT long
#define RealT Char
#define TH_REAL_IS_CHAR
#line 1 TH_GENERIC_FILE_TEMPLATE
#include TH_GENERIC_FILE_TEMPLATE
#undef realT
#undef accrealT
#undef RealT
#undef TH_REAL_IS_CHAR
#define realT short
#define accrealT long
#define RealT Short
#define TH_REAL_IS_SHORT
#line 1 TH_GENERIC_FILE_TEMPLATE
#include TH_GENERIC_FILE_TEMPLATE
#undef realT
#undef accrealT
#undef RealT
#undef TH_REAL_IS_SHORT
#define realT int
#define accrealT long
#define RealT Int
#define TH_REAL_IS_INT
#line 1 TH_GENERIC_FILE_TEMPLATE
#include TH_GENERIC_FILE_TEMPLATE
#undef realT
#undef accrealT
#undef RealT
#undef TH_REAL_IS_INT
#define realT long
#define accrealT long
#define RealT Long
#define TH_REAL_IS_LONG
#line 1 TH_GENERIC_FILE_TEMPLATE
#include TH_GENERIC_FILE_TEMPLATE
#undef realT
#undef accrealT
#undef RealT
#undef TH_REAL_IS_LONG
#define realT float
#define accrealT double
#define RealT Float
#define TH_REAL_IS_FLOAT
#line 1 TH_GENERIC_FILE_TEMPLATE
#include TH_GENERIC_FILE_TEMPLATE
#undef realT
#undef accrealT
#undef RealT
#undef TH_REAL_IS_FLOAT
#define realT double
#define accrealT double
#define RealT Double
#define TH_REAL_IS_DOUBLE
#line 1 TH_GENERIC_FILE_TEMPLATE
#include TH_GENERIC_FILE_TEMPLATE
#undef realT
#undef accrealT
#undef RealT
#undef TH_REAL_IS_DOUBLE
#undef THTensor_
#define THTensor_(NAME) TH_CONCAT_4(TH, Real, Tensor_, NAME)
#endif