From 6991a37b94fdcfb6c1d69b7ac4b6d6b96654111d Mon Sep 17 00:00:00 2001 From: Justin Sing <32938975+singjc@users.noreply.github.com> Date: Thu, 1 Aug 2024 10:30:32 -0400 Subject: update: LSTMState and GRUState fields to be public (#2384) --- candle-nn/src/rnn.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'candle-nn') diff --git a/candle-nn/src/rnn.rs b/candle-nn/src/rnn.rs index dbfa639b..30ad6ff5 100644 --- a/candle-nn/src/rnn.rs +++ b/candle-nn/src/rnn.rs @@ -50,8 +50,8 @@ pub trait RNN { #[allow(clippy::upper_case_acronyms)] #[derive(Debug, Clone)] pub struct LSTMState { - h: Tensor, - c: Tensor, + pub h: Tensor, + pub c: Tensor, } impl LSTMState { @@ -205,7 +205,7 @@ impl RNN for LSTM { #[allow(clippy::upper_case_acronyms)] #[derive(Debug, Clone)] pub struct GRUState { - h: Tensor, + pub h: Tensor, } impl GRUState { -- cgit v1.2.3