From 2bdbeca4faf43edfc1a41a844af24055cbf80322 Mon Sep 17 00:00:00 2001 From: liuwenhao4 Date: Sat, 31 Oct 2020 12:51:59 +0800 Subject: [PATCH] fix static checking of lite ops --- mindspore/lite/nnacl/fp32/resize.c | 6 +++--- mindspore/lite/nnacl/fp32/resize.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mindspore/lite/nnacl/fp32/resize.c b/mindspore/lite/nnacl/fp32/resize.c index 568bfb7584..00eced68e7 100644 --- a/mindspore/lite/nnacl/fp32/resize.c +++ b/mindspore/lite/nnacl/fp32/resize.c @@ -66,7 +66,7 @@ int PrepareResizeBilinear(const int *input_shape, const int *output_shape, bool int ResizeBilinear(const float *input_data, float *output_data, const int *input_shape, const int *output_shape, const int *y_bottoms, const int *y_tops, const int *x_lefts, const int *x_rights, - const float *y_bottom_weights, float *x_left_weights, int n_h_begin, int n_h_end) { + const float *y_bottom_weights, const float *x_left_weights, const int n_h_begin, const int n_h_end) { if (input_data == NULL || output_data == NULL || input_shape == NULL || output_shape == NULL || y_bottoms == NULL || y_tops == NULL || x_lefts == NULL || x_rights == NULL || y_bottom_weights == NULL || x_left_weights == NULL) { return NNACL_NULL_PTR; @@ -209,8 +209,8 @@ int InterpCol(const float *bottom_line, const float *top_line, float *output, in int ResizeBilinear2(const float *input_data, float *output_data, const int *input_shape, const int *output_shape, const int *y_bottoms, const int *y_tops, const int *x_lefts, const int *x_rights, - const float *y_bottom_weights, float *x_left_weights, float *line0, float *line1, int n_h_begin, - int n_h_end) { + const float *y_bottom_weights, const float *x_left_weights, float *line0, float *line1, + const int n_h_begin, const int n_h_end) { if (input_data == NULL || output_data == NULL || input_shape == NULL || output_shape == NULL || y_bottoms == NULL || y_tops == NULL || x_lefts == NULL || x_rights == NULL || y_bottom_weights == NULL || x_left_weights == NULL) { return NNACL_NULL_PTR; diff --git a/mindspore/lite/nnacl/fp32/resize.h b/mindspore/lite/nnacl/fp32/resize.h index 375b43e459..5e4eaa4a0b 100644 --- a/mindspore/lite/nnacl/fp32/resize.h +++ b/mindspore/lite/nnacl/fp32/resize.h @@ -31,12 +31,12 @@ int PrepareResizeBilinear(const int *input_shape, const int *output_shape, bool int ResizeBilinear(const float *input_data, float *output_data, const int *input_shape, const int *output_shape, const int *y_bottoms, const int *y_tops, const int *x_lefts, const int *x_rights, - const float *y_bottom_weights, float *x_left_weights, int n_h_begin, int n_h_end); + const float *y_bottom_weights, const float *x_left_weights, const int n_h_begin, const int n_h_end); int ResizeBilinear2(const float *input_data, float *output_data, const int *input_shape, const int *output_shape, const int *y_bottoms, const int *y_tops, const int *x_lefts, const int *x_rights, - const float *y_bottom_weights, float *x_left_weights, float *line0, float *line1, int n_h_begin, - int n_h_end); + const float *y_bottom_weights, const float *x_left_weights, float *line0, float *line1, + const int n_h_begin, const int n_h_end); int ResizeNearestNeighbor(const float *input_data, float *output_data, const int *input_shape, const int *output_shape, bool align_corners, int tid, int thread_num);