summaryrefslogtreecommitdiff
path: root/candle-nn
diff options
context:
space:
mode:
Diffstat (limited to 'candle-nn')
-rw-r--r--candle-nn/src/rnn.rs6
1 files changed, 3 insertions, 3 deletions
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 {