@@ -109,22 +109,22 @@ static void THNN_(unfolded_acc_vol)(
109
109
int pT ,
110
110
int pW ,
111
111
int pH ,
112
- int nInputPlane ,
113
- int inputDepth ,
114
- int inputWidth ,
115
- int inputHeight ,
116
- int outputDepth ,
117
- int outputWidth ,
118
- int outputHeight )
112
+ long nInputPlane ,
113
+ long inputDepth ,
114
+ long inputWidth ,
115
+ long inputHeight ,
116
+ long outputDepth ,
117
+ long outputWidth ,
118
+ long outputHeight )
119
119
{
120
- int nip ;
120
+ long nip ;
121
121
real * input_data = THTensor_ (data )(input );
122
122
real * finput_data = THTensor_ (data )(finput );
123
123
124
124
//#pragma omp parallel for private(nip)
125
125
for (nip = 0 ; nip < nInputPlane ; nip ++ )
126
126
{
127
- int kt , kw , kh , t , y , x , it , ix , iy ;
127
+ long kt , kw , kh , t , y , x , it , ix , iy ;
128
128
for (kt = 0 ; kt < kT ; kt ++ )
129
129
{
130
130
for (kh = 0 ; kh < kH ; kh ++ )
@@ -196,27 +196,27 @@ static void THNN_(unfolded_copy_vol)(
196
196
int pT ,
197
197
int pW ,
198
198
int pH ,
199
- int nInputPlane ,
200
- int inputDepth ,
201
- int inputWidth ,
202
- int inputHeight ,
203
- int outputDepth ,
204
- int outputWidth ,
205
- int outputHeight )
199
+ long nInputPlane ,
200
+ long inputDepth ,
201
+ long inputWidth ,
202
+ long inputHeight ,
203
+ long outputDepth ,
204
+ long outputWidth ,
205
+ long outputHeight )
206
206
{
207
207
long k ;
208
208
real * input_data = THTensor_ (data )(input );
209
209
real * finput_data = THTensor_ (data )(finput );
210
210
// #pragma omp parallel for private(k)
211
211
for (k = 0 ; k < nInputPlane * kT * kH * kW ; k ++ )
212
212
{
213
- int nip = k / (kT * kH * kW );
214
- int rest = k % (kT * kH * kW );
215
- int kt = rest / (kH * kW );
213
+ long nip = k / (kT * kH * kW );
214
+ long rest = k % (kT * kH * kW );
215
+ long kt = rest / (kH * kW );
216
216
rest = rest % (kH * kW );
217
- int kh = rest / kW ;
218
- int kw = rest % kW ;
219
- int t ,x ,y ,it ,ix ,iy ;
217
+ long kh = rest / kW ;
218
+ long kw = rest % kW ;
219
+ long t ,x ,y ,it ,ix ,iy ;
220
220
real * dst = finput_data
221
221
+ nip * (kT * kH * kW * outputDepth * outputHeight * outputWidth )
222
222
+ kt * (kH * kW * outputDepth * outputHeight * outputWidth )
0 commit comments