From db23cac1f8b73647d70876d1ffdcd483d6edf323 Mon Sep 17 00:00:00 2001 From: Luka Macan Date: Wed, 7 Feb 2024 14:37:43 +0100 Subject: [PATCH] Fix norm and quant struct types --- ne16/hal/ne16_task.h | 8 ++++---- neureka/hal/neureka_task.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ne16/hal/ne16_task.h b/ne16/hal/ne16_task.h index 69bc78c..a22646b 100644 --- a/ne16/hal/ne16_task.h +++ b/ne16/hal/ne16_task.h @@ -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 { @@ -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 { diff --git a/neureka/hal/neureka_task.h b/neureka/hal/neureka_task.h index 85715e7..6c255b6 100644 --- a/neureka/hal/neureka_task.h +++ b/neureka/hal/neureka_task.h @@ -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 { @@ -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 {