Browse Source

!8210 fix static checking problems of lite ops

Merge pull request !8210 from liuwenhao/master
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
f73026bb30
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mindspore/lite/nnacl/int8/l2_norm_int8.c
  2. +1
    -1
      mindspore/lite/src/runtime/kernel/opencl/cl/scale.cl

+ 1
- 1
mindspore/lite/nnacl/int8/l2_norm_int8.c View File

@@ -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) {


+ 1
- 1
mindspore/lite/src/runtime/kernel/opencl/cl/scale.cl View File

@@ -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