@@ -53,7 +53,7 @@ static void linear_coeffs(int w, int outw, int* xofs, float* alpha, int align_co
53
53
{
54
54
fx = (float )(dx * scale );
55
55
}
56
-
56
+
57
57
int sx = floor (fx );
58
58
fx -= sx ;
59
59
@@ -230,7 +230,7 @@ int ref_interp_fp32(struct tensor* input_tensor, struct tensor* output_tensor, s
230
230
float * alpha = (float * )(buf + param -> output_width + param -> output_height ); //new float[ow * 2];
231
231
float * beta = (float * )(buf + param -> output_width + param -> output_height + param -> output_width * 2 ); //new float[oh * 2];
232
232
233
- int align_corner = param -> resize_type == 2 ? 0 : 1 ;
233
+ int align_corner = param -> resize_type == 2 ? 0 : 1 ;
234
234
linear_coeffs (in_w , out_w , xofs , alpha , align_corner );
235
235
linear_coeffs (in_h , out_h , yofs , beta , align_corner );
236
236
@@ -325,7 +325,7 @@ int ref_interp_int8(struct tensor* input_tensor, struct tensor* output_tensor, s
325
325
float * alpha = (float * )(buf + param -> output_width + param -> output_height ); //new float[ow * 2];
326
326
float * beta = (float * )(buf + param -> output_width + param -> output_height + param -> output_width * 2 ); //new float[oh * 2];
327
327
328
- int align_corner = param -> resize_type == 2 ? 0 : 1 ;
328
+ int align_corner = param -> resize_type == 2 ? 0 : 1 ;
329
329
linear_coeffs (in_w , out_w , xofs , alpha , align_corner );
330
330
linear_coeffs (in_h , out_h , yofs , beta , align_corner );
331
331
@@ -434,7 +434,7 @@ int ref_interp_uint8(struct tensor* input_tensor, struct tensor* output_tensor,
434
434
float * alpha = (float * )(buf + param -> output_width + param -> output_height ); //new float[ow * 2];
435
435
float * beta = (float * )(buf + param -> output_width + param -> output_height + param -> output_width * 2 ); //new float[oh * 2];
436
436
437
- int align_corner = param -> resize_type == 2 ? 0 : 1 ;
437
+ int align_corner = param -> resize_type == 2 ? 0 : 1 ;
438
438
linear_coeffs (in_w , out_w , xofs , alpha , align_corner );
439
439
linear_coeffs (in_h , out_h , yofs , beta , align_corner );
440
440
0 commit comments