Browse Source

!8074 fix static checking of lite ops

Merge pull request !8074 from liuwenhao/master
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
d56ac6d378
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      mindspore/lite/nnacl/fp32/resize.c
  2. +3
    -3
      mindspore/lite/nnacl/fp32/resize.h

+ 3
- 3
mindspore/lite/nnacl/fp32/resize.c View File

@@ -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, 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 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 || 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) { y_tops == NULL || x_lefts == NULL || x_rights == NULL || y_bottom_weights == NULL || x_left_weights == NULL) {
return NNACL_NULL_PTR; 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, 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 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 || 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) { y_tops == NULL || x_lefts == NULL || x_rights == NULL || y_bottom_weights == NULL || x_left_weights == NULL) {
return NNACL_NULL_PTR; return NNACL_NULL_PTR;


+ 3
- 3
mindspore/lite/nnacl/fp32/resize.h View File

@@ -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, 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 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, 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 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, 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); bool align_corners, int tid, int thread_num);


Loading…
Cancel
Save