@@ -42,8 +42,8 @@ typedef enum {
4242
4343typedef struct ne16_norm_t {
4444 ne16_norm_mode_e mode ;
45- int flag_bias ;
46- int flag_shift ;
45+ ne16_task_flag_e flag_bias ;
46+ ne16_task_flag_e flag_shift ;
4747} ne16_norm_t ;
4848
4949typedef enum ne16_quant_mode_e {
@@ -59,9 +59,9 @@ typedef enum ne16_quant_function_e {
5959
6060typedef struct ne16_quant_t {
6161 // Shift amount must be in range 0x00-0x1F
62- unsigned shift_amount ;
62+ uint8_t shift_amount ;
6363 ne16_quant_function_e function ;
64- int flag_rounding ;
64+ ne16_task_flag_e flag_rounding ;
6565} ne16_quant_t ;
6666
6767typedef struct ne16_stride_t {
@@ -157,8 +157,8 @@ void ne16_task_set_padding(ne16_task_t *task, const uint8_t top,
157157 const uint8_t bottom , const uint8_t left ,
158158 const uint8_t right , const uint8_t value );
159159void ne16_task_set_mask_filter (ne16_task_t * task , const uint8_t top ,
160- const uint8_t right , const uint8_t bottom ,
161- const uint8_t left );
160+ const uint8_t bottom , const uint8_t left ,
161+ const uint8_t right );
162162/** ne16_task_set_dims
163163 *
164164 * All the strides variables are strides between elements alongside that
@@ -172,8 +172,8 @@ void ne16_task_set_dims(ne16_task_t *task, const uint32_t w_in,
172172 const uint32_t h_out_stride ,
173173 const uint32_t w_out_stride , const uint8_t padding_top ,
174174 const uint8_t padding_bottom ,
175- const uint8_t padding_right ,
176- const uint8_t padding_left );
175+ const uint8_t padding_left ,
176+ const uint8_t padding_right );
177177/** ne16_task_set_dims_stride2x2
178178 *
179179 * All the strides variables are strides between elements alongside that
@@ -186,7 +186,7 @@ void ne16_task_set_dims_stride2x2(
186186 const uint32_t h_out , const uint32_t w_out , const uint32_t k_out ,
187187 const uint32_t h_out_stride , const uint32_t w_out_stride ,
188188 const uint8_t h_ker , const uint8_t w_ker , const uint8_t padding_top ,
189- const uint8_t padding_bottom , const uint8_t padding_right ,
190- const uint8_t padding_left );
189+ const uint8_t padding_bottom , const uint8_t padding_left ,
190+ const uint8_t padding_right );
191191
192192#endif // !__NE16_TASK_H__
0 commit comments