fix static checking problems of lite ops

pull/8210/head
liuwenhao4 5 years ago
parent 57a8911eb0
commit 4a7787ae0f

@ -42,7 +42,7 @@ void GetSqrtQuantMultiplierExp(int32_t input, int reverse_shift, int32_t *multip
SaturatingRoundingDoublingHighMul(fp_f3_half_input, tmp3),
6, 3);
}
int32_t fp_f0_half_sqrt_2 = 1518500250; // sqrt(2) / 2
const int32_t fp_f0_half_sqrt_2 = 1518500250; // sqrt(2) / 2
tmp = SaturatingRoundingDoublingHighMul(tmp, fp_f0_half_sqrt_2);
*multiplier = tmp;
if (*shift < 0) {

@ -69,7 +69,7 @@ __kernel void Scale_H_IMG(__read_only image2d_t input, __read_only image2d_t sca
__write_only image2d_t output, const int2 output_shape, const int H, const int act_type) {
int X = get_global_id(0);
int Y = get_global_id(1);
if (X >= output_shape.x || Y >= output_shape.y) {
if (X >= output_shape.x || Y >= output_shape.y || H == 0) {
return;
}
int h = Y % H;

Loading…
Cancel
Save