Skip to content

Commit 838bf37

Browse files
committed
fix data types in quartus
1 parent c7a89d8 commit 838bf37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hls4ml/templates/quartus/firmware/nnet_utils/nnet_recurrent.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,10 +765,10 @@ void lstm(data_T data[CONFIG_T::n_timesteps * CONFIG_T::n_in], data2_T hidden_st
765765
const typename CONFIG_T::weight_t RWO[CONFIG_T::n_out * CONFIG_T::n_out],
766766
const typename CONFIG_T::bias_t BI[CONFIG_T::n_out], const typename CONFIG_T::bias_t BF[CONFIG_T::n_out],
767767
const typename CONFIG_T::bias_t BC[CONFIG_T::n_out], const typename CONFIG_T::bias_t BO[CONFIG_T::n_out]) {
768-
res_T hidden_state[CONFIG_T::n_out][CONFIG_T::n_timesteps + 1] hls_register;
769-
res_T hidden_state_temp[CONFIG_T::n_out] hls_register;
770-
res_T cell_state[CONFIG_T::n_out][CONFIG_T::n_timesteps + 1] hls_register;
771-
res_T cell_state_temp[CONFIG_T::n_out] hls_register;
768+
data2_T hidden_state[CONFIG_T::n_out][CONFIG_T::n_timesteps + 1] hls_register;
769+
data2_T hidden_state_temp[CONFIG_T::n_out] hls_register;
770+
data3_T cell_state[CONFIG_T::n_out][CONFIG_T::n_timesteps + 1] hls_register;
771+
data3_T cell_state_temp[CONFIG_T::n_out] hls_register;
772772
res_T h[CONFIG_T::n_out] hls_register;
773773
res_T c[CONFIG_T::n_out] hls_register;
774774
data_T in[CONFIG_T::n_in] hls_register;

0 commit comments

Comments
 (0)