Skip to content

Commit

Permalink
Fix norm and quant struct types
Browse files Browse the repository at this point in the history
  • Loading branch information
lukamac committed Feb 7, 2024
1 parent 3711f1b commit db23cac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ne16/hal/ne16_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ typedef enum {

typedef struct ne16_norm_t {
ne16_norm_mode_e mode;
int flag_bias;
int flag_shift;
ne16_task_flag_e flag_bias;
ne16_task_flag_e flag_shift;
} ne16_norm_t;

typedef enum ne16_quant_mode_e {
Expand All @@ -59,9 +59,9 @@ typedef enum ne16_quant_function_e {

typedef struct ne16_quant_t {
// Shift amount must be in range 0x00-0x1F
unsigned shift_amount;
uint8_t shift_amount;
ne16_quant_function_e function;
int flag_rounding;
ne16_task_flag_e flag_rounding;
} ne16_quant_t;

typedef struct ne16_stride_t {
Expand Down
8 changes: 4 additions & 4 deletions neureka/hal/neureka_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ typedef enum {

typedef struct neureka_norm_t {
neureka_norm_mode_e mode;
int flag_bias;
int flag_shift;
neureka_task_flag_e flag_bias;
neureka_task_flag_e flag_shift;
} neureka_norm_t;

typedef enum neureka_quant_mode_e {
Expand All @@ -62,9 +62,9 @@ typedef enum neureka_quant_function_e {

typedef struct neureka_quant_t {
// Shift amount must be in range 0x00-0x1F
unsigned shift_amount;
uint8_t shift_amount;
neureka_quant_function_e function;
int flag_rounding;
neureka_task_flag_e flag_rounding;
} neureka_quant_t;

typedef struct neureka_stride_t {
Expand Down

0 comments on commit db23cac

Please sign in to comment.